within(value)

switch(value)

Evaluate value as a string, then render the named block with that name. If that block doesn’t exist, render the anonymous block.

do() { }

Render the anonymous block. yield:name() within that block renders the named block to the do() function.

This is useful for things like conditionally adding links around generated HTML.

template:X()

Include another template in the rendered output. The template name, X, is part of the function name.

Templates may be a standard template, or a template defined by the plugin. Where a plugin template is in a subdirectory, the directory names are separated with : characters.

yield() & yield:Y()

When rendering a do() anonymous block, or template which has been included in another using the template:X() function, render a block from the calling function. yield() renders the anonymous block, yield:Y() renders the block named Y.

render(deferred)

Include a deferred render into the current template, created using the deferredRender() function on a Template.

This is intended to prevent you from needing to use unsafeHTML() by giving you a mechanisum to safely include rendered templates.