Uses the HTML headers h1, h2, …, h6 to generate nested fragment nodes.
Generate the nested fragment nodes from context.content under content.content_node but only if there is no associated :block data in context or the block is named content.
# File lib/webgen/contentprocessor/fragments.rb, line 13 13: def call(context) 14: if !context[:block] || context[:block].name == 'content' 15: sections = website.blackboard.invoke(:parse_html_headers, context.content) 16: website.blackboard.invoke(:create_fragment_nodes, sections, context.content_node, 17: website.blackboard.invoke(:source_paths)[context.content_node.node_info[:src]], 18: context.content_node.meta_info['fragments_in_menu']) 19: end 20: context 21: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.