https://github.com/strd6/hamlet-cli
CLI for Hamlet
https://github.com/strd6/hamlet-cli
Last synced: about 1 year ago
JSON representation
CLI for Hamlet
- Host: GitHub
- URL: https://github.com/strd6/hamlet-cli
- Owner: STRd6
- Created: 2013-08-10T22:45:34.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2014-10-12T19:35:52.000Z (over 11 years ago)
- Last Synced: 2025-04-03T23:44:29.469Z (about 1 year ago)
- Language: CoffeeScript
- Homepage: http://hamlet.coffee
- Size: 285 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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.