Module: Podium::LayoutHelper
- Defined in:
- app/helpers/podium/layout_helper.rb
Instance Method Summary collapse
Instance Method Details
#podlet_assets(type) ⇒ Object
7 8 9 10 11 |
# File 'app/helpers/podium/layout_helper.rb', line 7 def podlet_assets(type) Podium.instance.podlet_resources(@podlet_content.keys).flat_map do |resource| resource.manifest.public_send(type) end end |
#podlet_content!(name) ⇒ Object
3 4 5 |
# File 'app/helpers/podium/layout_helper.rb', line 3 def podlet_content!(name) @podlet_content.fetch(name).html_safe end |
#podlet_js_tags ⇒ Object
13 14 15 16 17 |
# File 'app/helpers/podium/layout_helper.rb', line 13 def podlet_assets(:js).map do |data| javascript_tag(nil, src: data.fetch("value"), type: data.fetch("type")) end.join("\n").html_safe end |