Class: Gem::Writter::JS
- Defined in:
- lib/rab/gem/writer/js.rb
Instance Method Summary collapse
Methods inherited from Template
Constructor Details
This class inherits a constructor from Gem::Writter::Template
Instance Method Details
#write(dst) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/rab/gem/writer/js.rb', line 4 def write(dst) return if @project.js_assets.empty? js_dir = File.join(dst, "vendor", "assets", "javascripts") write_assets(js_dir, @project.js_assets) manifest_file = File.join(js_dir, "#{@project.dir_name}.js") write_template("js_manifest.js.erb", manifest_file) end |