Code Monkey home page Code Monkey logo

lesscss-python's Introduction

A LessCSS Compiler in Python

LESS is an extension of CSS. You can write LESS code just like you would write CSS, except you need to compile it to CSS. That's what the package is for.

Installation

Download and extract the distribution and then from the command prompt type:

$ python setup.py install

Alternatively, if you have pip, you can download and install the package by typing the following command in the terminal:

$ pip install lesscss-python

Using from the command-line

Command line tool is called lessc.py, and is used like this:

$ lessc.py source [destination]

The source is the LESS file you want to compile, and the destination is the (optional) CSS file you want to compile it to:

$ lessc.py style.less style.css

If you did't specify a destination, lessc.py will output to stdout:

$ lessc.py style.less

Project status

Probably full of bugs with "potentially" all features apart from namespaces and accessors.

Currently this has all the features that I require, but lacks full compatibility with LessCSS.

Due to a request it is now hosted on Github https://github.com/metalshark/lesscss-python and may receive traction towards gaining full feature parity.

Open to anyone wanting to advance this project (it does not use a lexer/parser as such as it seemed more trouble than its worth to learn how they work in order to build this). It may be better to investigate lesscpy instead, as it currently has more development activity.

lesscss-python's People

Contributors

generalov avatar graingert avatar metalshark avatar

Watchers

 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.