summaryrefslogtreecommitdiffstats
path: root/pavement.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-12-14 18:57:32 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-12-14 18:57:32 +0100
commit0ed3fa2add0076eb29df348e9854b75c97bd3e36 (patch)
tree9731f3da7cd04463ffb529dfb51a33a02d9ad45b /pavement.py
parentAdded tag v0.4.9 for changeset 93143e127d79 (diff)
downloadpyload-0ed3fa2add0076eb29df348e9854b75c97bd3e36.tar.xz
workaround for #458
Diffstat (limited to 'pavement.py')
-rw-r--r--pavement.py3
1 files changed, 3 insertions, 0 deletions
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