gam3 has asked for the wisdom of the Perl Monks concerning the following question:
I am thinking of putting yet another template package on CPAN. I am planning to call it SST (super simple templates). But would like some advice on whether it should go in WWW or HTML.
I am open to any and all naming suggestions.
Why yatp? I wanted a package that seperates the web page design from the perl programming. The package that I am working on has two major features. The input template is valid HTML/XHTML. The program can test what data was displayed on the page.
The perl code:<span id="data1">This text will be replaced</span> <ul id="list1"> <li id="items">This will be replaced by each item</li> </ul>
The outputmy $t = WWw/HTML::SST->new('templatefilename'); print $t->output( data1 => $t->replace(text => 'new text), list1 => $t->loop( headers => ['items'], data => [['item1'], ['item2']], ), );
<span id="data1">new text</span> <ul id="list1"> <li id="items.1">item1</li> <li id="items.2">item2</li> </ul>
|
|---|