Jammit bundling helpers for Express.js
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.npmignore
README.md
assets_json.rb
init.js
package.json

README.md

Jammit Helpers plugin

  • Configure your assets using your standard config/assets.yml file

  • call the assets_json.rb script to generate the config/assets.json file ( we do this because I couldn't find a not crappy YAML parser )

  • in your views, you can use <%- assets_js("mypackage") %> or <%- assets_css("mypackage") %>

  • before prod: jammit --force