class CabezaDeTermo::AssetsPublisher::JavascriptType
Public Instance Methods
collect_uri_from(rendering_scope)
click to toggle source
Collect the javascripts uri from the rendering_scope
# 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()
click to toggle source
# File lib/cabeza-de-termo/assets-publisher/assets/types/javascript-type.rb, line 15 def compiler() configuration.javascripts_compiler end
html_for(asset_uri)
click to toggle source
# 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