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

Add LESS precompiler support #86

Open
thomshouse opened this issue Oct 13, 2012 · 0 comments
Open

Add LESS precompiler support #86

thomshouse opened this issue Oct 13, 2012 · 0 comments

Comments

@thomshouse
Copy link
Collaborator

I'm planning on adding LESS precompiler support to Escher using the leafo/lessphp library.

There will be a few components to this feature:

  • A less compiler helper.
  • A $header->addCompiledLESS('path/to/stylesheet.less'); function that will have branching behavior (see below).
  • A subdirectory designated for compiled CSS files to be stored in.

The $header->addCompiledLESS() function will behave as follows:

  • If the compiled CSS file does not exist, run $less->compileFile().
  • If compiled CSS exists and user guest or non-admin, do nothing.
  • If user is logged in as system admin and request header includes no-cache, run $less->compileFile().
  • In any event, add URL of compiled CSS to the headers.
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

1 participant