These are examples of what you can do with chunks.
Example of a macro use #1:

#body
{A=}NzlG28B-R8Y{=A}{embedvideo}
{A=}wy0ZoiJVmQk{=A}{embedvideo}
{A=}k9aoVRKeyZs{=A}{embedvideo}

#embedvideo
<iframe title="YouTube video player" width="480" height="390"
src="http://www.youtube.com/embed/{A}" frameborder="0" allowfullscreen></iframe>

This will display all three videos on the body chunk of the page.


Example of a macro use #2:

#macro
macro is {A}

#body
{A=}value1{=A}{macro}
{A=}value2{=A}{macro}
{A=}value3{=A}{macro}

Will be displayed as:
macro is value1
macro is value2
macro is value3
{chunk=}string{=chunk} is a variable that can be set as often as you want. This means, it can be used as function parameters to following chunks.


Example of escaping chunks #1:

#css
#[[
#header{background-color: #000;}
#main{font-size:1.2em;}
#footer{height: 300px;}
#]]

#css
 #header{background-color: #000;}
 #main{font-size:1.2em;}
 #footer{height: 300px;}


Hashes at the start of a line is special.

To turn this off, add #[[ to the beginning of a line.
To turn it back on, add #]] to the beginning of a line.

This is useful when defining css as you may want to put # at the start of a line where the other method is to just include a whitespace before it.

However, using #[[ means you will not risk forgetting to add a whitespace.


Example of escaping chunks #2:

#codeexamples
{code1}
{code2}
{code3}

#body
{.codeexamples}
Will be displayed as:
{code1}
{code2}
{code3}
Escapes the special Pagecake markup, { .