Back to the extension listing.
Webgen::Tag::IncludeFile
Summary
The following tag names are registered for this tag class: include_file
This tag uses the following options:
tag.includefile.filename
(mandatory default)tag.includefile.process_output
tag.includefile.escape_html
Description
The include file tag is used to include the content of a file. The filename needs to be specified relative to the website directory or as an absolute filename.
By surrounding the include file tag with a syntax highlighting tag it is possible to highlight the contents of a file.
Examples
Usage | Output |
---|---|
{include_file: {filename: AUTHORS, process_output: false}} | The author of webgen is Thomas Leitner <t_leitner@gmx.at>. The following persons have contributed to this version of webgen: * Arnaud Cornet <arnaud.cornet@gmail.com> * Jeremy Hinegardner <jeremy@hinegardner.org> * Massimiliano Filacchioni <m.filacchioni@caspur.it> * Paul van Tilburg <paulvt@debian.org> |
Back to the extension listing.