#!/usr/bin/perl use Template::Test; test_expect(\*DATA); __DATA__ -- test -- [% USE Textile -%] [% FILTER textile %]this is _like_ *so* *cool*[% END %] -- expect --

this is like so* *cool

-- test -- [% FILTER textile -%] Reasons to use the Template Toolkit: * Seperation of concerns. * It's written in Perl. * Badgers are Still Cool. [%- END %] -- expect --

Reasons to use the Template Toolkit:

-- test -- [% text = BLOCK %] The "Template Toolkit":http://www.tt2.org was written by Andy Wardly. !http://www.perl.com/supersnail/os2002/images/small/os6_d5_5268_w2_sm.jpg! This image (c) Julian Cash 2002 [% END -%] [%- text | textile %] -- expect --

The Template Toolkit was written by Andy Wardly.

This image © Julian Cash 2002