Class: GuidesStyle18F::AssetRootTag
- Inherits:
-
Liquid::Tag
- Object
- Liquid::Tag
- GuidesStyle18F::AssetRootTag
- Defined in:
- lib/guides_style_18f/assets.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.do_render(context) ⇒ Object
28 29 30 31 32 33 |
# File 'lib/guides_style_18f/assets.rb', line 28 def self.do_render(context) @asset_root ||= begin config = context.registers[:site].config config['asset_root'] || config['baseurl'] end end |
Instance Method Details
#render(context) ⇒ Object
24 25 26 |
# File 'lib/guides_style_18f/assets.rb', line 24 def render(context) self.class.do_render context end |