PHPackages                             dreerr/template-engine-pug - 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. dreerr/template-engine-pug

ActivePw-module

dreerr/template-engine-pug
==========================

ProcessWire module adding Pug to the TemplateEngineFactory

2.0.3(7y ago)460[1 issues](https://github.com/dreerr/TemplateEnginePug/issues)MITPHPPHP &gt;=7.0

Since Dec 12Pushed 3y ago3 watchersCompare

[ Source](https://github.com/dreerr/TemplateEnginePug)[ Packagist](https://packagist.org/packages/dreerr/template-engine-pug)[ Docs](https://github.com/dreerr/TemplateEnginePug)[ RSS](/packages/dreerr-template-engine-pug/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (3)Versions (5)Used By (0)

TemplateEnginePug
=================

[](#templateenginepug)

[![License: MIT](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](https://opensource.org/licenses/MIT)[![ProcessWire 3](https://camo.githubusercontent.com/34449e2237c61f5c40a0cbf06273d9f22ee4b9ba45442c77b6554c874927b1ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50726f63657373576972652d332e782d6f72616e67652e737667)](https://github.com/processwire/processwire)

A ProcessWire module adding [Pug](https://github.com/pug-php/pug) to the [TemplateEngineFactory](https://github.com/wanze/TemplateEngineFactory).

Requirements
------------

[](#requirements)

- ProcessWire `3.0` or newer
- TemplateEngineFactory `2.0` or newer
- PHP `7.0` or newer
- Composer

> The `1.x` version of this module is available on the [1.x branch](https://github.com/dreerr/TemplateEnginePug/tree/1.x). Use this version if you still use *TemplateEngineFactory* `1.x`.

Installation
------------

[](#installation)

Execute the following command in the root directory of your ProcessWire installation:

```
composer require dreerr/template-engine-pug:^2.0

```

This will install the *TemplateEnginePug* and *TemplateEngineFactory* modules in one step. Afterwards, don't forget to enable Pug as engine in the *TemplateEngineFactory* module's configuration.

Configuration
-------------

[](#configuration)

The module offers the following configuration:

- **`Template files suffix`** The suffix of the Pug template files, defaults to `pug`.
- **`Provide ProcessWire API variables in  templates`** API variables (`$pages`, `$input`, `$config`...) are accessible in Pug.
- **`Output indented HTML`** If checked, the output is rendered as indented HTML.
- **`Debug Output`** When an error occurs at render time, you will get a complete stack trace including line and offset in the original pug source file.
- **`Enable Profiler`** When set to true, it will output on render a timeline you can inspect in your browser to see wich token/node take longer to lex/parse/compile/render.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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 ~27 days

Total

4

Last Release

2627d ago

Major Versions

1.x-dev → v2.0.02019-02-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/27d6485e1d326bbbf16b71697a330bac72750fe87c917ceb23da07d56ed8f171?d=identicon)[dreerr](/maintainers/dreerr)

---

Top Contributors

[![dreerr](https://avatars.githubusercontent.com/u/1454661?v=4)](https://github.com/dreerr "dreerr (21 commits)")

---

Tags

jade-templatesphpprocesswirepugpug-template-enginepug-templatesprocesswirepugpug-engine

### Embed Badge

![Health badge](/badges/dreerr-template-engine-pug/health.svg)

```
[![Health](https://phpackages.com/badges/dreerr-template-engine-pug/health.svg)](https://phpackages.com/packages/dreerr-template-engine-pug)
```

###  Alternatives

[wanze/template-engine-twig

ProcessWire module adding Twig to the TemplateEngineFactory

128.1k](/packages/wanze-template-engine-twig)[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)
