template-toolkit
how to reverse an anonymous list in template toolkit?
Is it possible to reverse an anonymous list in template toolkit开发者_Go百科? e.g. [% FOREACH month IN [1..12].reverse %][详细]
2022-12-16 18:17 分类:问答How can I force list context in Template Toolkit with RDBO?
I have a TT plugin that does the trivial unique 开发者_C百科ids: sub get_unique_uid_tt { my ( $classname, $o ) = @_;[详细]
2022-12-15 12:38 分类:问答Line numbers with template toolkit
I am using the Perl Template Toolkit to generate C files. I dearly want to be able to include #line directives in my C code so that error messages from the C compiler send me to the right place (the t[详细]
2022-12-13 14:36 分类:问答How can you pass undef as an argument to an object method from a TT template?
Template-Toolkit seems to want to always interpolate undef to the empty string. So a template like this:[详细]
2022-12-10 22:28 分类:问答