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

Attribute/Mixin creation via javascript escape. #183

Closed
dylan opened this issue Jan 18, 2011 · 2 comments
Closed

Attribute/Mixin creation via javascript escape. #183

dylan opened this issue Jan 18, 2011 · 2 comments

Comments

@dylan
Copy link

dylan commented Jan 18, 2011

It looks like JS escapes aren't processed if they are not inside an attribute/variable. It'd be nice if we could generate mix ins or attributes using JS.

@frizzr
Copy link

frizzr commented Jun 4, 2011

I'd like to second this suggestion. Recently I've had the need to generate attributes dynamically to save a lot of typing in the code.

Something like allowing us to use

.meh (@theAttrib: "font-size") {
     e(@theAttrib): 1.1em;
}

...and just like that...instant code template!

I'm sure that feature add is easier said than done since you would have to expect the escape function almost anywhere. Yikes.

Thanks for considering...

@lukeapage
Copy link
Member

duplicate of #83 or #698

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

No branches or pull requests

3 participants