Permalink
Browse files

A little bit verbose README

  • Loading branch information...
1 parent 4710031 commit 98e70275505fdb653532274c762856343535a90f @domenkozar domenkozar committed Sep 7, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 README.md
View
@@ -22,6 +22,8 @@ webassets.jst_compiler=Handlebars.compile
Then you can just use config.add_webasset to add bundles to your environment
``` python
+ from webassets import Bundle
+
jst = Bundle('templates/*.html',
filters='jst',
output='js/jst.js', debug=False)
@@ -58,6 +60,13 @@ If you are using Jinja2, you can just do the following configuration (this assum
assets_env = config.get_webassets_env()
jinja2_env.assets_environment = assets_env
```
+and then:
+
+``` python
+ {% assets "jst" %}
+ <script type="text/javascript" src="{{ ASSET_URL }}"></script>
+ {% endassets %}
+```
Extras
====================

0 comments on commit 98e7027

Please sign in to comment.