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

Append dynamic variables to engine.compile() #39

Open
JpEncausse opened this issue May 15, 2013 · 1 comment
Open

Append dynamic variables to engine.compile() #39

JpEncausse opened this issue May 15, 2013 · 1 comment

Comments

@JpEncausse
Copy link

Hi,
Is there a best practice to add dynamic @variable to engine ?

Let's say I have a file.less and would like to call:

  • engine.compile('file.less', map); where map contains @color = "#FF0000"
  • engine.compile('file.less', map); where map contains @color = "#00FF00"

It seems there is no bridge to change 'env'

@asual
Copy link
Owner

asual commented May 29, 2013

Is there something similar available in the command-line less.js compiler?

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