Sha256: d76216509ea84b560e502fb4103199b6e5bfa750622d76eca986715f76465951
Contents?: true
Size: 338 Bytes
Versions: 2
Compression:
Stored size: 338 Bytes
Contents
module PufferPages module Liquid module Tags class Javascript < ::Liquid::Block def render(context) context.registers[:tracker].register("<%= javascript_tag do %>#{super}<% end %>") end end end end end Liquid::Template.register_tag('javascript', PufferPages::Liquid::Tags::Javascript)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
puffer_pages-0.5.1 | lib/puffer_pages/liquid/tags/javascript.rb |
puffer_pages-0.5.0 | lib/puffer_pages/liquid/tags/javascript.rb |