Skip to content
This repository has been archived by the owner on May 10, 2020. It is now read-only.
/ pyrocms-lessc Public archive

A plugin less compiler built in PHP - great for Twitter Bootstrap projects

Notifications You must be signed in to change notification settings

edmeehan/pyrocms-lessc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

#PyroCMS Less Compiler Plugin

###Plugin - Easy part Edward Meehan @ Wetumka Interactive LLC

###PHP Compiler - The guy that did the hard part https://github.com/leafo/lessphp http://leafo.net

#How to use

I set up a conditional in my views/partials/metadata.html - this way I use the compiled files on production and also can test in my staging environment.

{{ if global:environment == 'development' }}
<!-- DEVELOPMENT FILES -->
{{ less:compile file="build.less" output="style.css" }}
{{ else }}
<!-- PRODUCTION FILES -->
<link rel="stylesheet" href="/{{theme:path}}/css/style.css" />
{{ endif }}

About

A plugin less compiler built in PHP - great for Twitter Bootstrap projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages