Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在转换模板工具包文件,例如Pieces变成[% l('Pieces') %].
Pieces
[% l('Pieces') %]
我遇到了一个问题。什么是正确的转换'Title'?这是不正确的:[% l(''Title'') %]
'Title'
[% l(''Title'') %]
简而言之,如何逃脱'?
'
如果我理解正确,您可以使用备用引号。TT 近似于常规的 perl 引用,因此您可以使用双引号或单引号——
[% l("'Title'") %]