Class: CabezaDeTermo::AssetsPublisher::JavascriptType
- Defined in:
- lib/cabeza-de-termo/assets-publisher/assets/types/javascript-type.rb
Instance Method Summary collapse
-
#collect_uri_from(rendering_scope) ⇒ Object
Collect the javascripts uri from the rendering_scope.
- #compiler ⇒ Object
- #html_for(asset_uri) ⇒ Object
Methods inherited from AssetType
#collect_assets_from, #configuration, #new_asset_from_uri, #rendering_scope_assets_collector
Instance Method Details
#collect_uri_from(rendering_scope) ⇒ Object
Collect the javascripts uri from the rendering_scope
11 12 13 |
# File 'lib/cabeza-de-termo/assets-publisher/assets/types/javascript-type.rb', line 11 def collect_uri_from(rendering_scope) rendering_scope_assets_collector.javascripts_from rendering_scope end |
#compiler ⇒ Object
15 16 17 |
# File 'lib/cabeza-de-termo/assets-publisher/assets/types/javascript-type.rb', line 15 def compiler() configuration.javascripts_compiler end |
#html_for(asset_uri) ⇒ Object
6 7 8 |
# File 'lib/cabeza-de-termo/assets-publisher/assets/types/javascript-type.rb', line 6 def html_for(asset_uri) "<script src=\"#{asset_uri}\" type=\"text/javascript\"></script>" end |