Class: ApplicationJsTag

Inherits:
LiquidumTag
  • Object
show all
Defined in:
lib/scribo/liquid/tags/application_js_tag.rb

Overview

ApplicationAssets tag

Basic usage:

{%application_js%}

Instance Method Summary collapse

Instance Method Details

#render(context) ⇒ Object



8
9
10
11
12
13
# File 'lib/scribo/liquid/tags/application_js_tag.rb', line 8

def render(context)
  super

  js = lookup(context.registers, 'application_js')
  "<script>#{js}</script>" if js
end