Module: Lcms::Engine::ApplicationHelper

Includes:
ViewHelper, Webpacker::Helper
Defined in:
app/helpers/lcms/engine/application_helper.rb

Constant Summary

Constants included from ViewHelper

ViewHelper::ENABLE_BASE64_CACHING

Instance Method Summary collapse

Methods included from ViewHelper

#add_class_for_action, #add_class_for_path, #base64_encoded_asset, #color_code, #flash_to_hash, #header_mod, #inlined_asset, #lcms_engine_url_helpers, #nav_link, #page_description, #page_og_image, #page_title, #redirect_meta_tag, #redirect_via_meta_tag, #selected_id?, #set_canonical_url, #set_page_description, #set_page_title, #strip_tags_and_squish

Instance Method Details

#lcms_engine_javascript_pack_tag(*names, **options) ⇒ Object

Use this to include lcms-engine based packs



12
13
14
15
16
17
# File 'app/helpers/lcms/engine/application_helper.rb', line 12

def lcms_engine_javascript_pack_tag(*names, **options)
  entries = names
              .map { |name| Lcms::Engine.webpacker.manifest.lookup!(name, type: :javascript) }
              .flatten
  javascript_include_tag(*entries, **options)
end