in reply to Re^3: Mojolicious HTMLTemplateProRenderer
in thread HTML::Template Plugin

Hi, I know the code would work with the "SelfLoader", I am trying to make it work without any template code attached to the Perl code, without this part:
__DATA__ @@ hi.html.tmpl <p> from __DATA__ its @@ hi.html.tmpl <p> <TMPL_VAR NAME="t1">
and load it separated, this template code would be in its own directory, like in /templates or something. Thanks!

Replies are listed 'Best First'.
Re^5: Mojolicious HTMLTemplateProRenderer
by beech (Parson) on Feb 16, 2017 at 01:08 UTC

    Hi, I know the code would work with the "SelfLoader", I am trying to make it work without any template code attached to the Perl code, and load it separated, this template code would be in its own directory, like in /templates or something. Thanks!

    Hi,

    Look closer at Re^3: Mojolicious HTMLTemplateProRenderer, look at the perl foo.pl calls, I'm showing that it works

    On first run, template from __DATA__ is used

    On second run, after I rename not_templates to templates, templates/hi.html.tmpl is used

    On third run, after I rename not_exists to exists, exists/hi.html.tmpl is used