Summary | Includes the content of a file |
---|---|
Tag names | include_file |
Configuration prefix | tag.include_file |
Mandatory options |
tag.include_file.filename |
Used options |
tag.include_file.filename tag.include_file.process_output tag.include_file.escape_html |
Provided by bundle | built-in |
API doc | Webgen::Tag::IncludeFile |
Description
This 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 like tag.coderay it is possible to highlight the contents of a file.
Examples
{include_file: {filename: webgen.config, process_output: false}}
content_processor: kramdown.options: :coderay_line_numbers: ~ erb.trim_mode: '%' content_processor.tikz: transparent: true resolution: 288 96 website.base_url: http://webgen.gettalong.org node_finder.option_sets: auto_nav_links: alcn: /documentation/**/*.en.html sort: true not: alcn: - /documentation/reference/api/**/*.en.html - /documentation/**/index.en.html - /documentation/reference/extensions/content_processor.en.html - /documentation/reference/extensions/path_handler.en.html - /documentation/reference/extensions/source.en.html - /documentation/reference/extensions/tag.en.html - /documentation/reference/extensions/destination.en.html - /documentation/reference/extensions/item_tracker.en.html