webgen logo

webgen / static website generator

static website generation made easy!

Latest news

2007-12-31: Minor release with feature enhancements. More...

2007-09-08: Small bug fix release. More...

2007-06-29: Some bug fixes and one small feature enhancement. More...

Links

Generated by webgen

General Information

Plugin name:Tag/ExecuteCommand (Tag/Default)
Author:Thomas Leitner <t_leitner@gmx.at>
Summary:Executes the given command and uses its standard output as the tag value
Parameters:

command (=default mandatory parameter): nil
The command which should be executed

escapeHTML: true
Special HTML characters in the output will be escaped if true

highlight: nil
Name of language that should be used for syntax highlighting the output of the command. If set to nil, no highlighting is performed. Available langs:

processOutput: true
The output of the command will be further processed by the TagProcessor if true

Handled tags:execute

Description

The execute command tag is used to include the output from a shell command. It also includes a parameter for highlighting the output via the Misc/SyntaxHighlighter.

Examples

UsageOutput
{execute: uname -p}
unknown
{execute: {command: 'echo puts LANG + 5.to_s', highlight: ruby}} puts LANG + 5.to_s