Sha256: d68de2d7fc09bca9c98f618678196a31ee6c6fc1d8636c97753f5e596b7610e4
Contents?: true
Size: 610 Bytes
Versions: 1
Compression:
Stored size: 610 Bytes
Contents
require 'webgen/tag' module Webgen::Tag # Provides easy access to the meta information of a node. class Metainfo include Base # Return the meta information key specified in +tag+ of the content node. def call(tag, body, context) output = '' if tag == 'lang' output = context.content_node.lang elsif context.content_node[tag] output = context.content_node[tag].to_s else log(:warn) { "No value for tag '#{tag}' in <#{context.ref_node.absolute_lcn}> found in <#{context.content_node.absolute_lcn}>" } end output end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
webgen-0.5.0 | lib/webgen/tag/metainfo.rb |