Sign in
apache
/
spark
/
97ec57e667fef0360e8fca48b61012d218452971
/
.
/
docs
/
_plugins
/
production_tag.rb
blob: 9f870cf2137af55ca17b01bb353bb938dd282bd4 [
file
] [
log
] [
blame
]
module
Jekyll
class
ProductionTag
<
Liquid
::
Block
def
initialize
(
tag_name
,
markup
,
tokens
)
super
end
def
render
(
context
)
if
ENV
[
'PRODUCTION'
]
then
super
else
""
end
end
end
end
Liquid
::
Template
.
register_tag
(
'production'
,
Jekyll
::
ProductionTag
)