class Webgen::Utils::TagParser

This class is used to parse a string for webgen tags and replace them with dynamically generated content. See replace_tags for more information.

Public Class Methods

new(prefix = nil)

Create a new TagParser object, optionally providing a tag prefix.

Public Instance Methods

parse_params(param_string, tag)

Parse the parameter string and return the result.

replace_tags(content) { |tag_name, params, body| ... }

Return the content with all webgen tags replaced.

When a webgen tag is encountered by the parser, the method yields all found information and substitutes the returned string for the tag.