Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OHR Support
Manage
Activity
Members
Labels
Plan
Issues
97
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
OHR Support
Commits
04eb115d
Commit
04eb115d
authored
13 years ago
by
Holger Just
Browse files
Options
Downloads
Patches
Plain Diff
Add identity tag which just returns whatever was entered as input
parent
34fef9d8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/chili_project/liquid/tags/identity.rb
+14
-0
14 additions, 0 deletions
lib/chili_project/liquid/tags/identity.rb
with
14 additions
and
0 deletions
lib/chili_project/liquid/tags/identity.rb
0 → 100644
+
14
−
0
View file @
04eb115d
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
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment