Escape Sequences

GTL supports a number of escape sequences to simplify the layout of your templates and generated files, and to make reserved characters accessible.

The following escape sequences can be used inside templates:

Escape sequence

Description

\n

New line. For examples of using new lines in macro blocks, see Controlling Line Breaks in Head and Tail Strings.

\t

Tab

\\

Backslash

\ at end of line

Continuation character (ignores the new line)

. at beginning of line

Comment. Ignores the line.

.. at beginning of line

Dot character (to generate a macro).

%%

Percent character.