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

CLI: When using a directory as input, the --namespace argument is ignored #75

Closed
mrhmouse opened this issue Aug 8, 2013 · 1 comment

Comments

@mrhmouse
Copy link

mrhmouse commented Aug 8, 2013

I'm currently scripting haml-coffee in my project's Makefile, and need it to compile all of the HAML files in a certain directory.

For the time being, I am using this as a workaround, but it is ugly and specific to my shell:

build:
    for file in views/*.haml\
    do\
        haml-coffee -i "${file}" -n window.View\
    end

I would like to simply do this:

build:
    haml-coffee -i views -n window.View

Here are the steps to reproduce this bug:

Setup

Given a directory structure like:

views:
    index.haml

Command

haml-coffee -i views -n window.View

Expected

Output templates should use the namespace window.View.

Result

Output templates use the namespace window.HAML.

@netzpirat
Copy link
Owner

Thanks for reporting. Released version 1.11.4 with a fix.

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