tag

Description

These extensions allow the easy inclusion of dynamic content in, for example, page and template paths. No knowledge of a programming language is needed to make effective use of tags and each tag is used for a specific task like creating a menu or a breadcrumb trail.

Information about how to create a tag is found in the Webgen::Tag API documentation.

Tag Templates

The output of some tags can be customized by providing a custom rendering template via a configuration option.

This configuration option needs the (a)(l)cn of a template or page node as value and this node needs to have a specially named block (normally of the form tag.TAGNAME). This block is then used for rendering the output.

This mechanism allows you, for example, to add such a block to the default website template so that there is no need to create a separate template.

List of Tag Extensions

tag.breadcrumb_trail
Creates a breadcrumb trail (i.e. shows the directory hierarchy) for the content page
tag.coderay
Applies syntax highlighting to the tag body
tag.date
Displays the current date/time in a customizable format
tag.execute_command
Includes the output of a command
tag.include_file
Includes the content of a file
tag.langbar
Displays a list of links to translations of the content page
Creates a link to a given path
tag.menu
Creates a customizable menu
tag.meta_info
Outputs the value of a given meta information key of the generated page
tag.relocatable
Makes the given path relative to the generated page
tag.tikz
Generates an output image from the specified TikZ commands