Add identity tag which just returns whatever was entered as input

This commit is contained in:
Holger Just 2011-12-17 23:49:25 +01:00
parent 34fef9d8fc
commit 04eb115da7
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
module ChiliProject::Liquid::Tags
class Identity < Tag
def initialize(tag_name, markup, tokens)
@tag_name = tag_name
@markup = markup
@tokens = tokens
super
end
def render(context)
"{% #{@tag_name} %}"
end
end
end