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

Feature (or design) Request: Server-side plugin design #1986

Closed
censys-git opened this issue Apr 22, 2014 · 2 comments
Closed

Feature (or design) Request: Server-side plugin design #1986

censys-git opened this issue Apr 22, 2014 · 2 comments

Comments

@censys-git
Copy link

I am trying to get Less.js to work server-side in a Software as a Service environment. Basically, you are running client side JavaScript on the server without window or DOM (document) objects available. Access to files and directories is through APIs (e.g. createFile, loadFile, saveFile, and so on) and I am having a very difficult time separating out the file accessing/writing portions of the code from the essential less parsing portions. It appears the Rhino version comes the closest to being usable (versus Node.js) since it removes the window/document and AJAX dependencies.

Wondering if it were possible to separate out the two primary sections (file operations and parsing operations) so we could easily plug in our own file operations). Essentially break out any read or write operations into an API.

I can do this myself through trial and error but maintaining would be difficult over time and those closest to the code may know how to do this in a heart beat and once done will allow updates to work without mucking with the code each time.

@matthew-dean
Copy link
Member

@lukeapage Duplicate of #1732? (How do you want to track this?)

@lukeapage
Copy link
Member

This work is in progress on the 2.0 branch. Closing as we have issues to cover it. Please feel free to comment on the 2.0 pull request and make pull requests to the 2.0 branch.

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

3 participants