Skip to content

Instantly share code, notes, and snippets.

@shelling
Created August 6, 2009 13:22
Show Gist options
  • Save shelling/163307 to your computer and use it in GitHub Desktop.
Save shelling/163307 to your computer and use it in GitHub Desktop.
<% my $person = "johnny" %>
person is <%= $person %>
<%= $var_out %>
#!/usr/bin/env perl
#
no strict;
use Text::Template::Simple;
open $file , " < simple-text-template.tts";
my $var_out = "outter var here";
my $compiler = Text::Template::Simple->new(
header => qq{my \$var_out = \"$var_out\";},
);
print $compiler->compile($file);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment