From 3419619234f4ae5cba7ba200d5ca9d1455beedaa Mon Sep 17 00:00:00 2001 From: Zev Benjamin Date: Wed, 18 Sep 2013 14:08:26 -0400 Subject: [PATCH] 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) --- zproject/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zproject/settings.py b/zproject/settings.py index 668a32d8bc..3439a2f62e 100644 --- a/zproject/settings.py +++ b/zproject/settings.py @@ -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