Add identity tag which just returns whatever was entered as input
This commit is contained in:
parent
34fef9d8fc
commit
04eb115da7
|
@ -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
|
Loading…
Reference in New Issue