We're making some changes to how static media (js, css, images, fonts, etc.) is handled in bedrock. The major points are as follows:
Instead of the old media('img/dude.gif')
, you'll now use static('img/dude.gif')
. It's nearly identical, but you do have to be more careful NOT to include a slash at the beginning of the path. The old way would deal, the new will break.
Replacing the old jingo-minify css('bundle-name')
and js('bundle-name')
functions are tags. They're functionally identical to the old ones, but look like: {% javascript 'bundle-name' %}
and {% stylesheet 'bundle-name' %}
.
Speaking of bundles, there is a new syntax for them. We're moving from...