Class: CabezaDeTermo::AssetsPublisher::StylesheetType
- Defined in:
- lib/cabeza-de-termo/assets-publisher/assets/types/stylesheet-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/stylesheet-type.rb', line 11 def collect_uri_from(rendering_scope) rendering_scope_assets_collector.stylesheets_from rendering_scope end |
#compiler ⇒ Object
15 16 17 |
# File 'lib/cabeza-de-termo/assets-publisher/assets/types/stylesheet-type.rb', line 15 def compiler() configuration.stylesheets_compiler end |
#html_for(asset_uri) ⇒ Object
6 7 8 |
# File 'lib/cabeza-de-termo/assets-publisher/assets/types/stylesheet-type.rb', line 6 def html_for(asset_uri) "<link href=\"#{asset_uri}\" type=\"text/css\" rel=\"stylesheet\">" end |