Skip to content

Instantly share code, notes, and snippets.

Created July 31, 2011 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1117074 to your computer and use it in GitHub Desktop.
Save anonymous/1117074 to your computer and use it in GitHub Desktop.
use v6;
use HTML::Template;
my $template = HTML::Template.new(filename => 'index.tmpl');
$template.param('CONTENT' => 'hello world');
say $template.output;
<html>
<body>
<h1>a blog by djanatyn</h1>
<p>in perl6, of course</p>
<br/>
<p><TMPL_VAR NAME=CONTENT></p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment