Can I use Mojolicious to build a static site?
问题 Is it possible to use the Mojolicious template system to build a static website? I'm trying to use a (skeleton) script like this: use Mojo::Template; use Mojolicious::Plugin::DefaultHelpers; use Mojolicious::Plugin::TagHelpers; my $mt = Mojo::Template->new; print $mt->render_file('index.html.ep'); Where index.html.ep is like this: % layout 'default'; This is a foo However I get an error nessage: String found where operator expected at index.html.ep line 1, near "layout 'default'" (Do you need