GithubHelp home page GithubHelp logo

kajvin / stylephp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mosbth/stylephp

0.0 1.0 0.0 142 KB

A style.php which autocompiles style.less to style.css using lessphp while implementing caching and 304 not modified.

License: Other

stylephp's Introduction

A style.php to autocompile LESS using lessphp

This project is an example where lessphp is used for serverside compile LESS to CSS. The file style.php implements the function autoCompileLess() which is described in the lessphp manual. It add on gzip-encoding and enable sending header 304 Not Modified when the stylesheet has not changed.

The project includes the essentials from lessphp to make it a working example. Just clone it and point your browser to the catalogue. You need to make the catalogue writable for the webserver since lessphp creates a cache-file, style.less.cache, and writes the resulting stylesheet.css.

You can see the working example here:

Details for lessphp

  • Made by: leaf
  • Website: http://leafo.net/lessphp
  • Version included: 0.4.0 (2013-08-09)
  • License: Dual license, MIT LICENSE and GPL VERSION 3
  • Path: lessphp

Visit the website for latest details and documentation on lessphp.

.
..: Copyright 2012-13 by Mikael Roos ([email protected])

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.