Add identity tag which just returns whatever was entered as input
This commit is contained in:
parent
34fef9d8fc
commit
04eb115da7
14
lib/chili_project/liquid/tags/identity.rb
Normal file
14
lib/chili_project/liquid/tags/identity.rb
Normal 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
|
Loading…
x
Reference in New Issue
Block a user