Provides easy access to the meta information of a node.
Return the meta information key specified in tag of the content node.
# File lib/webgen/tag/metainfo.rb, line 12 12: def call(tag, body, context) 13: output = '' 14: if tag == 'lang' 15: output = context.content_node.lang 16: elsif context.content_node[tag] 17: output = context.content_node[tag].to_s 18: output = CGI::escapeHTML(output) if param('tag.metainfo.escape_html') 19: else 20: log(:error) { "No value for meta info key '#{tag}' in <#{context.ref_node}> found in <#{context.content_node}>" } 21: end 22: output 23: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.