Class: JekyllDynamicAssets::AssetsTag
- Inherits:
-
Liquid::Tag
- Object
- Liquid::Tag
- JekyllDynamicAssets::AssetsTag
- Defined in:
- lib/jekyll_dynamic_assets/assets_tag.rb
Overview
inject_assets % tag
Instance Method Summary collapse
Instance Method Details
#render(context) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/jekyll_dynamic_assets/assets_tag.rb', line 8 def render(context) site = context.registers[:site] page = context.registers[:page] # Initialize and run the processor processor = Processor.new(site: site, page: page) processor.assets.join("\n") end |