| Class | Tags::CustomVarTag |
| In: |
lib/webgen/plugins/tags/customvar.rb
|
| Parent: | DefaultTag |
# File lib/webgen/plugins/tags/customvar.rb, line 39
39: def process_tag( tag, chain )
40: output = ''
41: customVars = param( 'customVars', 'Core/Configuration' )
42: var = param( 'var' )
43:
44: if customVars.kind_of?( Hash ) && customVars.has_key?( var )
45: output = customVars[var]
46: else
47: log(:warn) { "No custom variable called '#{var}' found in Core/Configuration:customVars (file <#{chain.first.node_info[:src]}>)" }
48: end
49: output
50: end