in reply to Re^3: Loading values into template using Perl and Mojolicious::Lite
in thread Loading values into template using Perl and Mojolicious::Lite
But it still doesn't work.# Load value into Main template, # but I cant get the results to display on the template. # $c->render( # template => 'main', # ); # this is the tag in the template <TMPL_VAR NAME="result"> $c->stash( result => ' This is the result for testing' ); # I also return json from the sql query results, which it was called + from ajax # and it works fine. return $c->render(json => $data );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Loading values into template using Perl and Mojolicious::Lite
by Corion (Patriarch) on Mar 31, 2017 at 19:07 UTC | |
by Anonymous Monk on Mar 31, 2017 at 19:14 UTC |