template-toolkit
Is there a common intersection of Smarty and Template Toolkit?
In some projects I have to work with Perl and Template Toolkit and in others with PHP and Smarty templates. Can you somehow configure both to have a common subset of each language, so you can use the[详细]
2023-04-05 12:42 分类:问答perl dancer: foreach in template is only printing first value
I have what should be a really simple problem in Dancer: I have an array of names, and I\'d like to print each one in a template.These names come from an outside source (not a database).However, when[详细]
2023-03-31 21:23 分类:问答How do I handle errors in methods chains in Perl?
What is the best way to开发者_开发百科 deal with exceptions threw in a method chaining in Perl?[详细]
2023-03-27 23:26 分类:问答How to make tidy ignore TT code in html.tt templates?
I have some TT templates that I want tidy-up a little. I use tidy on the command-line. my command looks like:[详细]
2023-03-23 07:50 分类:问答Show time delta in perl's template toolkit
I want to supply an integer to a Template::Toolkit template. This integer represents a number of seconds elapsed.[详细]
2023-03-20 11:53 分类:问答Why can't I perform a replace on a variable in template toolkit?
I am using Template Toolkit and the replace functionality isn\'t working. Here\'s my code... 开发者_开发百科[% FOREACH item = file_conversions %][详细]
2023-02-25 08:51 分类:问答Array of sorted key/value pairs to sorted array of keys and hash
I am developing a Catalyst app which uses Template::Toolkit as template engine. One page needs a list of equal input elements. They can be taken from an array but I need both sort order and a descript[详细]
2023-02-22 13:23 分类:问答Template toolkit IF on an empty array ref returns true, can I make it false?
So it seems that if I give template toolkit a reference to an array as a parameter ARRAY_REF => \\@array[详细]
2023-02-08 10:37 分类:问答How do I use a HTML filter in macro arguments in Template Toolkit?
I have something like this: [% query | html %] Now I would like to use it as [% MACRO l(text, args) BLOCK; c.localize(text, args); END; %][详细]
2023-02-07 21:03 分类:问答How to escape single quotes in Template Toolkit?
I am converting Template Toolki开发者_JAVA百科t files, e.g. Pieces becomes [% l(\'Pieces\') %]. I encountered one problem. What is the proper conversion of \'Title\'? This is not correct: [% l(\'\'Ti[详细]
2023-02-07 11:21 分类:问答