bgarrels / zipscript

Automatically exported from code.google.com/p/zipscript
0 stars 0 forks source link

Add escape/noescape directives #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
syntax: [#escape method] ... [/#escape]
syntax: [#noescape] ... [/#noescape]

example:
[#set var="abc"/]
[#escape upperCase]
    ${var} def ${"ghi"}
    [#noescape]
        jlk ${"mno"}
    [/#noescape]
[/#escape]

result:
    ABC def GHI
            jlk mno

note:
${body} / ${header} / ${footer} will not be escaped when referenced in a
macro definition

Original issue reported on code.google.com by joe...@gmail.com on 8 Jul 2008 at 8:01

GoogleCodeExporter commented 9 years ago
allowed escape methods:

upperFirst
lowerFirst
lowerCase
humpbackCase
upperCase
html
js
rtf
url
xml

Original comment by joe...@gmail.com on 8 Jul 2008 at 8:11