Sha256: 50678ea5859b014a5d00dc44d25fa1707f1e70250b128f629ae21b09fe1f4ae2
Contents?: true
Size: 418 Bytes
Versions: 2
Compression:
Stored size: 418 Bytes
Contents
module Liquor class Ifchanged < Block def render(context) context.stack do output = render_all(@nodelist, context) if output != context.registers[:ifchanged] context.registers[:ifchanged] = output output else '' end end end end Template.register_tag('ifchanged', Ifchanged) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
liquor-0.1.1 | lib/liquor/tags/ifchanged.rb |
liquor-0.1.0 | lib/liquor/tags/ifchanged.rb |