GithubHelp home page GithubHelp logo

cgvarela / engine-less Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jonschlinkert/engine-less

0.0 3.0 0.0 162 KB

Consolidate-style engine for rendering .less files. Can be used with assemble, verb, express, or any other application that supports consolidate-style engines.

License: MIT License

JavaScript 98.53% CSS 1.47%

engine-less's Introduction

engine-less NPM version

Consolidate-style engine for rendering .less files.

Install with npm

$ npm i engine-less --save

Related

  • assemble: Static site generator for Grunt.js, Yeoman and Node.js. Used by Zurb Foundation, Zurb Ink, H5BP/Effeckt,… more | homepage
  • consolidate: Template engine consolidation library | homepage
  • engine-cache: express.js inspired template-engine manager. | homepage
  • engines: Template engine library with fast, synchronous rendering, based on consolidate. | homepage
  • template: Render templates using any engine. Supports, layouts, pages, partials and custom template types. Use template… more | homepage
  • verb: Documentation generator for GitHub projects. Extremely powerful, easy to use, can generate anything from API… more | homepage

API

Less string support. Process the given str of less and invoke the callback callback(err, css).

Params

  • str {String}
  • options {Object|Function}: or callback.
  • callback {Function}

Example

var str = '@red: #900;\n.foo {color: @red;}';
engine.render(str, function (err, css) {
  console.log(css);
  //=> '.foo {\n  color: #990000;\n}\n'
});

Less file support. Process a .less file at the given fp and callback callback(err, css).

Params

  • filepath {String}
  • options {Object|Function}: or callback function.
  • callback {Function}

Example

var less = require('engine-less');
less.renderFile('my-styles.less', {}, function (err, css) {
  console.log(css);
  //=> '.aaa {\n  color: blue;\n}\n'
});

Author

Jon Schlinkert

License

Copyright © 2014-2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb-cli on August 24, 2015.

engine-less's People

Contributors

jonschlinkert avatar

Watchers

James Cloos avatar Carlos G. Varela avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.