#307 fix compiler bugs

This commit is contained in:
Leo Horie 2014-10-13 21:22:38 -04:00
parent 459c20b01e
commit 98c413b55b
2 changed files with 4 additions and 2 deletions

View file

@ -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 <output-filename>.js <input-filename>.js
Usage: sjs --module /template-compiler.sjs --output <output-filename>.js <input-filename>.js
*/
macro m {
@ -63,3 +63,5 @@ macro m {
return #{Mithril};
}
}
export m;

View file

@ -49,7 +49,7 @@ npm install -g sweet.js
To compile a file, type:
```
sjs --module /template-compiler.sjs --output <output-filename>.js <input-filename>.js
sjs -r -m /template-compiler.sjs -o <output-filename>.js <input-filename>.js
```
---