package
Express.js extension to render LessCSS (.less) files server-side :)
npm install less4clientsGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 61 packages.
3.3 MB+
Includes dependencies.
Less4Clients allows Express.js to render .less files when ?css is appended to their urls.
http://localhost:5000/asd.less
body {
a {
color:'bada55';
}
}http://localhost:5000/asd.less?css
body a {
color:'bada55';
}Install it
npm install less4clientsWith Node.js in JavaScript
// Include Less4Clients
require('coffee-script');
less4clients = require('less4clients');
// Setup with your Express Server
less4clients.createInstance({
server: null, // your express server (required)
publicPath: '...', // the full path to your server root (required)
missingAction: false, // the action to forward to when a file is not found
cache: false, // whether the responses should be cached
compress: false // whether the output should be compressed
});With Node.js in CoffeeScript
# Include Less4Clients
less4clients = require
Licensed under the MIT License Copyright 2011 Benjamin Arthur Lupton