Sha256: 5dfb38f51d369b872f84980552995de0f2cf9ad458b36a8b8094abf1e9db577e
Contents?: true
Size: 598 Bytes
Versions: 4
Compression:
Stored size: 598 Bytes
Contents
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 meta info key '#{tag}' in <#{context.ref_node.absolute_lcn}> found in <#{context.content_node.absolute_lcn}>" } end output end end end
Version data entries
4 entries across 4 versions & 2 rubygems