0.7.0-pre.1 • Published 10 years ago
hamlet-cli v0.7.0-pre.1
Hamlet CLI
Command line interface for processing files with Hamlet over stdio.
Usage
Haml in, JavaScript templates out.
hamlet < template.haml > output.js
echo "%h1#title= @title" | hamlet
Options
--runtime, -r [runtime_name]
Specifies the name of the globally available Hamlet runtime (default is 'require("hamlet-runtime")'). This is so the templates can be used with browserify on node.js or used manully in the browser.
```bash
hamlet -r "Hamlet" < template.haml > output.js
```
-a, --ast
If given the compiler outputs the AST as JSON rather than a JavaScript template.
0.7.0-pre.1
10 years ago
0.7.0-pre.0
10 years ago
0.6.0-pre.10
10 years ago
0.6.0-pre.9
10 years ago
0.6.0-pre.8
10 years ago
0.6.0-pre.4
10 years ago
0.6.0-pre.3
10 years ago
0.6.0-pre.2
10 years ago
0.6.0-pre.1
10 years ago
0.6.0-pre.0
10 years ago