Templating

Base class

The class of a template engine should have three methods

  • render ( Str $key, %params )

    • $key is the template to be rendered

    • %params is a hash of all the parameters to be used in the template

  • refresh

    • re-initialises the engine after the templates have been modified

  • Str

    • Mandatory, provides the name of the templater that is used for plugin template Hash files. A plugin may provide templates for one or more templating engines (see RenderPod).

Raku::Pod::Render v4.10.6

A generic Pod6 Renderer with custom Pod::Blocks, FormatCodes for one or more files using templates, provides HTML and MarkDown.

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.

Built with Podlite — the markup and publishing tools behind this site.