Class: Webgen::Tag::Sitemap
- Inherits:
-
Object
- Object
- Webgen::Tag::Sitemap
- Includes:
- Base, WebsiteAccess
- Defined in:
- lib/webgen/tag/sitemap.rb
Overview
Generates a sitemap. The sitemap contains the hierarchy of all pages on the web site.
Instance Method Summary collapse
-
#call(tag, body, context) ⇒ Object
Create the sitemap.
Methods included from WebsiteAccess
Methods included from Base
#create_tag_params, #param, #set_params
Methods included from Loggable
Instance Method Details
#call(tag, body, context) ⇒ Object
Create the sitemap.
12 13 14 15 |
# File 'lib/webgen/tag/sitemap.rb', line 12 def call(tag, body, context) tree = website.blackboard.invoke(:create_sitemap, context.dest_node, context.content_node.lang, @params) (tree.children.empty? ? '' : output_sitemap(tree, context)) end |