Skip to content

Instantly share code, notes, and snippets.

@mechairoi
Created October 7, 2012 14:55
Show Gist options
  • Save mechairoi/3848591 to your computer and use it in GitHub Desktop.
Save mechairoi/3848591 to your computer and use it in GitHub Desktop.
Xslate segmentation fault
use Text::Xslate;
my $tx = Text::Xslate->new({
syntax => 'TTerse',
});
print $tx->render('a.tt');
print $tx->render('a.tt');
__END__
@a.tt
[%- SET foo = 1 %][%- WRAPPER 'b.tt' WITH bar = foo -%][% END %]
@b.tt
[% FOR baz IN [] %][% END %]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment