From 0ed3fa2add0076eb29df348e9854b75c97bd3e36 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 14 Dec 2011 18:57:32 +0100 Subject: workaround for #458 --- pavement.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pavement.py') diff --git a/pavement.py b/pavement.py index cd52b6f1a..ac9a6fa1a 100644 --- a/pavement.py +++ b/pavement.py @@ -189,12 +189,15 @@ def compile_js(): root = path("module") / "web" / "media" / "js" for f in root.glob("*.coffee"): + print "generate", f coffee = Popen(["coffee", "-cbs"], stdin=open(f, "rb"), stdout=PIPE) yui = Popen(["yuicompressor", "--type", "js"], stdin=coffee.stdout, stdout=PIPE) coffee.stdout.close() content = yui.communicate()[0] with open(root / f.name.replace(".coffee", ".js"), "wb") as js: + js.write("{% autoescape true %}\n") js.write(content) + js.write("\n{% endautoescape %}") @task -- cgit v1.2.3