Dashboard > RIFE > ... > Templates > Template tag escaping
RIFE Log In | Sign Up   View a printable version of the current page.
Template tag escaping


Added by Geert Bevin, last edited by Geert Bevin on May 14, 2004  (view change)
Labels: 
(None)

Template tags can now be escaped with the \ character, and that character can again be escaped by doubling it. Note that these only are detected right before the start of a template tag. Backslashes elsewhere in the content are left completely unaffected.

For example :

\<!--V 'VALUE1'-->\\default1\<!--/V-->

Doesn't define any values and corresponds to the text :

<!--V 'VALUE1'-->\\default1<!--/V-->

Another more complex example :

[!B 'BLOCK1']
    one\\
    [!V 'VALUE']default\[!/V]two\<!--V 'VALUE2'-->default2\\[!/V]
    \[!V 'VALUE'/]three\<!--/B-->
[!/B]

Creates a block BLOCK1 with the following text :

    one\\
    
    [!V 'VALUE'/]three<!--/B-->

Inside there's one value VALUE with the following default content :

default[!/V]two<!--V 'VALUE2'-->default2\ 



Are you enjoying Confluence? Please consider purchasing it today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.1a Build:#515 May 19, 2006) - Bug/feature request - Contact Administrators