#307 fix compiler bugs
This commit is contained in:
parent
459c20b01e
commit
98c413b55b
2 changed files with 4 additions and 2 deletions
|
|
@ -3,7 +3,7 @@ Compiles Mithril templates
|
||||||
|
|
||||||
Requires sweet.js (https://github.com/mozilla/sweet.js)
|
Requires sweet.js (https://github.com/mozilla/sweet.js)
|
||||||
Installation: npm install -g 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 {
|
macro m {
|
||||||
|
|
@ -63,3 +63,5 @@ macro m {
|
||||||
return #{Mithril};
|
return #{Mithril};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export m;
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ npm install -g sweet.js
|
||||||
To compile a file, type:
|
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
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue