PHPackages                             pug-php/pug-filter-less - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. pug-php/pug-filter-less

ActiveLibrary[Templating &amp; Views](/categories/templating)

pug-php/pug-filter-less
=======================

Render Less code as compiled CSS in a style tag

1.1.0(8y ago)290.0k↓30%1MITPHPCI failing

Since May 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/pug-php/pug-filter-less)[ Packagist](https://packagist.org/packages/pug-php/pug-filter-less)[ RSS](/packages/pug-php-pug-filter-less/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (1)

pug-filter-less
===============

[](#pug-filter-less)

[![Latest Stable Version](https://camo.githubusercontent.com/84a6e299baff1f8f737f8bc4f17798b007325ddca8961d7a510f298205ed299c/68747470733a2f2f706f7365722e707567782e6f72672f7075672d7068702f7075672d66696c7465722d6c6573732f762f737461626c652e706e67)](https://packagist.org/packages/pug-php/pug-filter-less)[![Build Status](https://camo.githubusercontent.com/7802d9028e10f805b2c3e7840d2fdd1df550427392625b3fc554d39c5d88ec89/68747470733a2f2f7472617669732d63692e6f72672f7075672d7068702f7075672d66696c7465722d6c6573732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pug-php/pug-filter-less)[![Code Climate](https://camo.githubusercontent.com/5dbc0753b9f7c64352be3eec79e519987ad32efcb6e4ed9e3eeb23fb56091c1f/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f7075672d7068702f7075672d66696c7465722d6c6573732f6261646765732f6770612e737667)](https://codeclimate.com/github/pug-php/pug-filter-less)[![Test Coverage](https://camo.githubusercontent.com/eb9ac3e46cf6377b48f1b0891dcc325344703b0a6ec9be85b4977af16885610b/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f7075672d7068702f7075672d66696c7465722d6c6573732f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/pug-php/pug-filter-less/coverage)[![StyleCI](https://camo.githubusercontent.com/04ad04c94107c70cf0b5cc1e1af078bafaf11b01d7980ef59dbb270272ea315e/68747470733a2f2f7374796c6563692e696f2f7265706f732f36343432393933302f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/64429930)

This template:

```
//- set from php controller
- $prev = $color

//- set in the pug template
- $color = 'red'

head
  :less
    @prev: yellow;
    p {
      width: 200px;
      color: #{color};
      a {
        color: #{prev};
      }
      em {
        color: @prev;
      }
    }
body
  p
    | I'm
    =color
    |  but my links are
    a=prev
    |  and my quotes are
    em=prev
```

with data like this:

```
$pug = new Pug();
$pug->render('template.pug', array(
    'color' => 'red',
));
```

will be rendered like this:

```

    p {
      color: red;
    }
    p a {
      color: yellow;
    }
    p em {
      color: yellow;
    }

    I'm red but my links are yellow and my quotes are yellow

```

Security contact information
----------------------------

[](#security-contact-information)

To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~141 days

Total

2

Last Release

3149d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/df90c422f521bf26355c3e185a59fe7afb35531af56244dfaec03ee1d0ca6f24?d=identicon)[kylekatarn](/maintainers/kylekatarn)

---

Top Contributors

[![kylekatarnls](https://avatars.githubusercontent.com/u/5966783?v=4)](https://github.com/kylekatarnls "kylekatarnls (19 commits)")

---

Tags

cssextensionfilterlesspug

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pug-php-pug-filter-less/health.svg)

```
[![Health](https://phpackages.com/badges/pug-php-pug-filter-less/health.svg)](https://phpackages.com/packages/pug-php-pug-filter-less)
```

###  Alternatives

[bkwld/laravel-pug

Pug view adapter for Laravel

15967.4k2](/packages/bkwld-laravel-pug)[nystudio107/craft-twigpack

Twigpack is a bridge between Twig and webpack, with manifest.json &amp; webpack-dev-server HMR support

97341.4k17](/packages/nystudio107-craft-twigpack)[pug-php/pug-symfony

Pug template engine for Symfony

444.4k](/packages/pug-php-pug-symfony)[ci-pug/ci-pug

HAML-like template engine for CodeIgniter

211.7k](/packages/ci-pug-ci-pug)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
