include YARD
include Templates
module MyTemplateHelper
def linkify(*args)
if args.first.is_a?(String)
case args.first
when /^taghead:(\S+)/
tag_name = $1
params = args[1]
return "
#{tag_name}: #{params}
"
when /^valhead:(\S+)/
tag_name = $1
return "#{tag_name}
"
when /^tag:(\S+)/
tag_name = $1
return "#{tag_name}"
else
super
end
end
super
end
end
Template.extra_includes << MyTemplateHelper
Engine.register_template_path(File.dirname(__FILE__))