# CamlTemplate Test Page

Here are some excerpts from poems by Samuel Taylor Coleridge, who was born on 1772-10-21.

Title | Year | Poet's age at time of writing | Excerpt
--- | --- | --- | ---
Kubla Khan | 1797 | 25 | In Xanadu did Kubla Khan / A stately pleasure-dome decree.
Christabel | 1800 | 28 | 'Tis the middle of the night by the castle clock, / And the owls have awakened the crowing cock;
Dejection: An Ode | 1802 | 30 | Well! If the Bard was weather-wise, who made / The grand old ballad of Sir Patrick Spence
The Rime of the Ancient Mariner | 1817 | 45 | It is an ancient Mariner / And he stoppeth one of three.

Some expressions:

Expression | Value
--- | ---
48 * -3 + 12 - 1 / 6 | -132
(48 * (-3 + (12 - 1))) / 6 | 64
(48 * (-3.45 + (12 - 1))) / 6.7 | 54.0895522388
"Poems by " + poet.name | Poems by Samuel Taylor Coleridge
"Poems by \"" + poet.name + "\"" | Poems by "Samuel Taylor Coleridge"
substring("Hello, world", 7, 5) | world

Scalar values are true if they exist and are non-zero or non-empty; list and hash values are true if they exist:

> This line will be included.

There are boolean true and false literals:

> This line will be shown.

Scopes:

Expected | Actual
--- | ---
"foo" | "foo"
"bar" | "bar"
"" | ""
"foo" | "foo"

An inline macro:

> The poet's name is Samuel Taylor Coleridge.

The bracket operator:

> Samuel Taylor Coleridge was born in 1772.

Some text to be HTML-escaped:

> <Sam & Sara>

Dollar signs can be used unescaped, as long as they're not followed by '{':

> The apples cost $3.00.

It's possible to escape print expressions:

> ${poet.name}

With two backslashes, you get:

> \${poet.name}

A dollar sign followed by an expansion:

> $Samuel Taylor Coleridge

A dollar sign followed by an escape:

> $${poet.name}

You can also escape directives:

> #if (poet)
> Do something.
> #end

Escapes in string literals:

    	A quotation mark: "
    	And a backslash: \

Nested comments:

A string containing comment characters:

> #* This isn't a comment.

You can write #else# and #end# to avoid newlines:

> The poet's name is Samuel Taylor Coleridge.

Some UTF-8 text:

> En général, les techniciens sont prêts à répondre uniquement aux questions concernant les logiciels qu'ils maintiennent.

A footer, included from another file:

This is the footer.