miracle2k/webassets — Issue #102: JST debug behavior is broken
Author: sean-lynch
Created: 2012-02-10 01:15:25+00:00
State: open

Debug = True or Debug = 'merge' breaks the applications that depend on JST to compile their templates. The JST filter should be run regardless of the value of the debug flag as simply merging the unprocessed HTML files into a single file doesn't make those templates retrievable by Javascript.

For an trivial example, see: https://github.com/sean-lynch/flask-assets-issues/blob/master/1/webassets-test.py - If you uncomment either of the debug flags, the resulting file is simply merged HTML, and not a JST object.

The work around is set the debug flag on any bundle that uses JST to false, but as far as I can tell, that needs to be done in code as a hack when setting up the environment. See: https://github.com/holdenmatt/webapp-boilerplate/blob/master/server/app.py