Class | Tags::MetaTag |
In: |
lib/webgen/plugins/tags/meta.rb
|
Parent: | DefaultTag |
This plugin registers itself as default plugin for tags. It substitutes tags with their respective values from the node meta data.
This is very useful if you want to add new meta information to the page description files and simple copy the values to the output file.
# File lib/webgen/plugins/tags/meta.rb, line 41 41: def process_tag( tag, chain ) 42: output = '' 43: if chain.last[tag] 44: output = chain.last[tag].to_s 45: else 46: log(:warn) { "No value for tag '#{tag}' in <#{chain.first.node_info[:src]}> found in <#{chain.last.node_info[:src]}>" } 47: end 48: output 49: end