Skip to content

Using a mojolicious plugin outside of an app (TagHelpers) #1853

Answered by Grinnz
daleif asked this question in Q&A
Discussion options

You must be logged in to vote

You could load a dummy app and use its renderer (untested):

my $app = Mojo::HelloWorld->new;
$app->renderer->paths([$template_dir]);
my $output = $app->build_controller->render_to_string('template_name');

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by daleif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants