Class: Ramaze::Asset::Javascript
- Defined in:
- lib/ramaze/asset/javascript.rb
Overview
File group for Javascript files. These Javascript files are minified using JSMin.
Instance Attribute Summary
Attributes inherited from FileGroup
Instance Method Summary collapse
-
#html_tag(gestalt, path) ⇒ Object
Builds a “<script>“ tag for a single Javascript file.
-
#minify(input) ⇒ String
Minifies the output and returns the result as a string.
Methods inherited from FileGroup
#build, #build_html, #extension, extension, #initialize
Constructor Details
This class inherits a constructor from Ramaze::Asset::FileGroup
Instance Method Details
#html_tag(gestalt, path) ⇒ Object
Builds a “<script>“ tag for a single Javascript file.
36 37 38 |
# File 'lib/ramaze/asset/javascript.rb', line 36 def html_tag(gestalt, path) gestalt.script(:src => path, :type => 'text/javascript') {} end |