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

Support require('less').render(str, options) #2

Closed
tj opened this issue Mar 23, 2010 · 4 comments
Closed

Support require('less').render(str, options) #2

tj opened this issue Mar 23, 2010 · 4 comments

Comments

@tj
Copy link

tj commented Mar 23, 2010

I have been trying to get all the SSJS rendering
engines to follow this convention so that they can
work with Express out of the box.

options like "locals", "context" etc do not really
apply here but thats the signature anyways

@cloudhead
Copy link
Member

Just added it, but it takes a callback too, as the parsing is async:

http://github.com/cloudhead/less.js/commit/05044028cff70173be6b7a8379a03aaed3102208

@tj
Copy link
Author

tj commented Mar 23, 2010

whats async about it if another framework handles the IO ? (didnt look at your implementation yet)

@cloudhead
Copy link
Member

The async part is file I/O, when evaluating @import directives

@tj
Copy link
Author

tj commented Mar 23, 2010

ah i gotcha good call

This issue was closed.
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