Module: Plutonium::Helpers::AssetsHelper
- Included in:
- UI::Layout::Base
- Defined in:
- lib/plutonium/helpers/assets_helper.rb
Overview
Helper module for managing asset-related functionality
Instance Method Summary collapse
-
#resource_logo_asset ⇒ String
Get the logo asset path.
-
#resource_logo_tag(classname:) ⇒ ActiveSupport::SafeBuffer
Generate an image tag for the logo.
-
#resource_script_asset ⇒ String
Get the script asset path.
-
#resource_stylesheet_asset ⇒ String
Get the stylesheet asset path.
Instance Method Details
#resource_logo_asset ⇒ String
Get the logo asset path
18 19 20 |
# File 'lib/plutonium/helpers/assets_helper.rb', line 18 def resource_logo_asset Plutonium.configuration.assets.logo end |
#resource_logo_tag(classname:) ⇒ ActiveSupport::SafeBuffer
Generate an image tag for the logo
11 12 13 |
# File 'lib/plutonium/helpers/assets_helper.rb', line 11 def resource_logo_tag(classname:) image_tag(resource_logo_asset, class: classname) end |
#resource_script_asset ⇒ String
Get the script asset path
32 33 34 |
# File 'lib/plutonium/helpers/assets_helper.rb', line 32 def resource_script_asset Plutonium.configuration.assets.script end |
#resource_stylesheet_asset ⇒ String
Get the stylesheet asset path
25 26 27 |
# File 'lib/plutonium/helpers/assets_helper.rb', line 25 def resource_stylesheet_asset Plutonium.configuration.assets.stylesheet end |