Include compiled handlebar templates before our code

I believe this was the source of the "Handlebars.compile is not a
function" errors, though I don't know why so few users got it.

(imported from commit f4a72e35bf25f679461d3c9e6938d118fec30278)
This commit is contained in:
Zev Benjamin 2013-09-18 14:08:26 -04:00
parent 5441e36167
commit 3419619234
1 changed files with 3 additions and 1 deletions

View File

@ -428,7 +428,9 @@ JS_SPECS = {
if not DEBUG:
# This file is generated by update-prod-static.
# In dev we fetch individual templates using Ajax.
JS_SPECS['app']['source_filenames'].append('templates/compiled.js')
app_srcs = JS_SPECS['app']['source_filenames']
app_srcs.insert(app_srcs.index('third/handlebars/handlebars.runtime.js') + 1,
'templates/compiled.js')
PIPELINE_JS = {} # Now handled in tools/minify-js