Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command-line tool has no option to output compiled haml-coffee to stdout #44

Closed
dwwoelfel opened this issue Nov 14, 2012 · 1 comment
Closed

Comments

@dwwoelfel
Copy link

The command-line tool does not have an option to output the compiled haml-coffee to stdout. This makes it hard to do fun stuff like make an Emacs mode for haml-coffee that integrates with swank-js.

@netzpirat
Copy link
Owner

That was fun! Really cool to quickly test a template on the command line. Thanks for the idea. I released 1.8.0 that contains stream redirection.

(From the README)

Stream redirection

You can use Haml Coffee on the command line to enter a template and stop it with Ctrl-D:

$ haml-coffee -p amd
%h1 Hello AMD
^D

which will output the AMD module source code to the console. You either have to set the placement option to amd or
give it a template name like

$ haml-coffee -t name
%p JST rocks!
^D

which will output the JST source code. Now you can also redirect files like:

$ haml-coffee -t name < input.hamlc > output.jst

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants