From 98c413b55bbe02ab6189621c0634019029c2340d Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Mon, 13 Oct 2014 21:22:38 -0400 Subject: [PATCH] #307 fix compiler bugs --- docs/layout/tools/template-compiler.sjs | 4 +++- docs/optimizing-performance.md | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/layout/tools/template-compiler.sjs b/docs/layout/tools/template-compiler.sjs index eb5b92e3..2e545593 100644 --- a/docs/layout/tools/template-compiler.sjs +++ b/docs/layout/tools/template-compiler.sjs @@ -3,7 +3,7 @@ Compiles Mithril templates Requires sweet.js (https://github.com/mozilla/sweet.js) Installation: npm install -g sweet.js -Usage: sjs --module /mithril.compile.sjs --output .js .js +Usage: sjs --module /template-compiler.sjs --output .js .js */ macro m { @@ -63,3 +63,5 @@ macro m { return #{Mithril}; } } + +export m; diff --git a/docs/optimizing-performance.md b/docs/optimizing-performance.md index c6a214a6..d4ed8b44 100644 --- a/docs/optimizing-performance.md +++ b/docs/optimizing-performance.md @@ -49,7 +49,7 @@ npm install -g sweet.js To compile a file, type: ``` -sjs --module /template-compiler.sjs --output .js .js +sjs -r -m /template-compiler.sjs -o .js .js ``` ---