https://github.com/dahlia/web-lessc
A simple HTTP API of LESS compiler
https://github.com/dahlia/web-lessc
Last synced: 6 months ago
JSON representation
A simple HTTP API of LESS compiler
- Host: GitHub
- URL: https://github.com/dahlia/web-lessc
- Owner: dahlia
- Created: 2010-06-22T09:55:23.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2010-09-07T07:33:38.000Z (about 15 years ago)
- Last Synced: 2025-02-05T14:14:23.744Z (8 months ago)
- Language: JavaScript
- Homepage: http://dahlia.ruree.net/lessc/
- Size: 93.8 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
web-lessc: A simple HTTP API of [LESS][] compiler
=================================================It is a simple HTTP API of [LESS][] compiler.
[less]: http://github.com/cloudhead/less.js
You can pass the URL of the LESS source code as `url=` `GET` parameter or
the LESS source code data as `POST` request body.Parameters
----------`url=`
: The URL of the LESS source code. It is required until you request as `POST`
with request data contains the LESS source code.`compress=`
`x=`
: Compress the result CSS code if it is `true`. Default is `false`.`optimization=`
`O=`
`o=`
: Optimization level from `0` to `2`. Default is `1`.`silent=`
`s=`
: Omit error messages.Example: `GET`
--------------GET /lessc/?url=http:%2F%2Fyoursite.com%2Ffile.less HTTP/1.1
Host: dahlia.ruree.netExample `POST`
--------------POST /lessc/ HTTP/1.1
Host: dahlia.ruree.net.your.less-code { goes: here }
When errored
------------HTTP/1.1 500 Internal Server Error
Content-Type: text/css
Connection: keep-alive
Transfer-Encoding: chunked/*
Error:1 a {
^
...Author and source code
----------------------The author is Hong Minhee.
Source code is available on its repository under Public Domain license.