Module: Webgen::Context::WebgenTags
- Included in:
- Webgen::Context
- Defined in:
- lib/webgen/context/webgen_tags.rb
Overview
Provides methods for using webgen tags.
Instance Method Summary collapse
-
#tag(name, params = {}, body = '') ⇒ Object
Returns the result of evaluating the webgen tag
namewith the tag parametersparamsand thebodyin the current context.
Instance Method Details
#tag(name, params = {}, body = '') ⇒ Object
Returns the result of evaluating the webgen tag name with the tag parameters params and the body in the current context.
Have a look at Webgen::Tag for more information about webgen tags!
This method is useful when you want to have the functionality of webgen tags available but you don’t want to use the content processor for them. Or, for example, if the used markup language uses a similar markup as webgen tags do and therefore you can’t use the normal webgen tags content processor.
18 19 20 |
# File 'lib/webgen/context/webgen_tags.rb', line 18 def tag(name, params = {}, body = '') website.ext.tag.call(name, params, body, self) end |