un poco turbio
This commit is contained in:
@@ -3,7 +3,6 @@ use Mojo::Base 'Mojolicious::Controller';
|
||||
use Mojo::Template;
|
||||
use Dojo::Support qw{ log dmph merge_hash load_module get_names};
|
||||
use Dojo::Conf;
|
||||
|
||||
sub tst{
|
||||
my $c=shift;
|
||||
# $c->stash( merge_hash(
|
||||
@@ -11,16 +10,22 @@ sub tst{
|
||||
# (load_module("home/contact"))[0]
|
||||
#));
|
||||
# $c->stash(apend => ["home/contact"]);
|
||||
$c->stash( (load_module("home/tst"))[0] );
|
||||
$c->stash(layout=> "defaultContact");
|
||||
my $x = [get_names("public/home/cal/img/")];
|
||||
log("@$x");
|
||||
$c->stash( ilist => $x);
|
||||
$c->dbv->tst;
|
||||
#$c->stash( (load_module("home/tst"))[0] );
|
||||
#$c->stash(layout=> "defaultContact");
|
||||
#my $x = [get_names("public/home/cal/img/")];
|
||||
#log("@$x");
|
||||
#$c->stash( ilist => $x);
|
||||
#$c->dbv->tst;
|
||||
$c->render(text=> $c->config->{radio}{'channel'});
|
||||
|
||||
}
|
||||
|
||||
# User ========================================================================
|
||||
sub home_ {
|
||||
my $c = shift;
|
||||
$c->redirect_to("/home") ;
|
||||
}
|
||||
|
||||
sub home {
|
||||
my $c = shift;
|
||||
$c->stash((load_module("home/home"))[0]);
|
||||
@@ -92,6 +97,13 @@ sub tst{
|
||||
$c->stash( t=>$c->dbv->podcast_txt, pod=>$c->dbv->podcast_infoHash);
|
||||
}
|
||||
|
||||
sub bcast{
|
||||
my $c = shift;
|
||||
$c->stash((load_module("home/bcast"))[0]);
|
||||
$c->stash( $c->dbv->conf_bcast);
|
||||
|
||||
}
|
||||
|
||||
sub radio{
|
||||
my $c=shift;
|
||||
$c->stash((load_module("home/radio"))[0]);
|
||||
|
||||
Reference in New Issue
Block a user