PHPackages                             wireframe-framework/wireframe-renderer-latte - 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. [Framework](/categories/framework)
4. /
5. wireframe-framework/wireframe-renderer-latte

ActivePw-module[Framework](/categories/framework)

wireframe-framework/wireframe-renderer-latte
============================================

Latte renderer for the Wireframe output framework.

0.0.2(3y ago)15MPL-2.0PHPPHP &gt;=7.2

Since Jul 21Pushed 3y ago2 watchersCompare

[ Source](https://github.com/wireframe-framework/WireframeRendererLatte)[ Packagist](https://packagist.org/packages/wireframe-framework/wireframe-renderer-latte)[ Docs](https://wireframe-framework.com)[ RSS](/packages/wireframe-framework-wireframe-renderer-latte/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Latte renderer for the Wireframe output framework
-------------------------------------------------

[](#latte-renderer-for-the-wireframe-output-framework)

This module is an optional renderer add-on for the Wireframe output framework, adding support for the Latte templating engine.

**Note**: this module is currently considered an early beta release. If you run into any problems, please open an issue at .

Installing the module
---------------------

[](#installing-the-module)

This module can be installed just like any other ProcessWire module, by cloning or downloading the module files to your modules directory. Alternatively you can install it via Composer:

```
composer require wireframe-framework/wireframe-renderer-latte

```

Basic usage
-----------

[](#basic-usage)

First of all, you need to install both Wireframe and WireframeRenderLatte, and then set up Wireframe (as instructed at ). Once that's done, you can open the bootstrap file (wireframe.php) and instruct Wireframe to use the Latte renderer:

```
// during Wireframe init (this is the preferred way):
$wireframe->init([
    'renderer' => ['WireframeRendererLatte', [
        'latte' => [
            // just an example (this is the default value)
            'tempDirectory' => $this->wire('config')->paths->cache . '/WireframeRendererLatte',
        ],
        'ext' => 'latte', // file extension ('latte' is the default value)
    ]],
]);

// ... or after init (this incurs a slight overhead):
$wireframe->setRenderer('WireframeRendererLatte', [
    // optional settings array
]);
```

Latte templates
---------------

[](#latte-templates)

Once you've told Wireframe to use the Latte renderer, by default it will attempt to render all your views, layouts, and components using Latte. File extension for Latte templates is `.latte`, though you can override this if you prefer something else (see examples in the "Basic usage" section).

Note that if a Latte file can't be found, Wireframe will automatically fall back to native (`.php`) file. This is intended to ease migrating from PHP to Latte, and also makes it possible for Latte and PHP view files to co-exist.

> If you need help with Latte and its syntax, visit .

### Includes (partials)

[](#includes-partials)

Latte provides a function for including other templates (`{include 'some.latte'}`), and in the context of Wireframe this translates best to the concept of partials. As such using this function looks for include files from the Wireframe partials directory:

```
{include 'header.latte'}

```

```
.
|-- partials
|   `-- header.latte

```

### Extending Latte

[](#extending-latte)

If you want to add filters, functions, tags, etc. to Latte, you can access the Latte Engine by hooking into `WireframeRendererLatte::initLatte`:

```
// site/ready.php
$wire->addHookAfter('WireframeRendererLatte::initLatte', function(HookEvent $event) {
	$event->return->addFilter('shortify', function (string $s): string {
		return mb_substr($s, 0, 10); // shortens the text to 10 characters
	});
});
```

```
{$page->name|shortify}

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

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

Total

2

Last Release

1396d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1252021?v=4)[Teppo Koivula](/maintainers/teppokoivula)[@teppokoivula](https://github.com/teppokoivula)

---

Top Contributors

[![teppokoivula](https://avatars.githubusercontent.com/u/1252021?v=4)](https://github.com/teppokoivula "teppokoivula (3 commits)")

---

Tags

frameworkprocesswiretemplatelatte

### Embed Badge

![Health badge](/badges/wireframe-framework-wireframe-renderer-latte/health.svg)

```
[![Health](https://phpackages.com/badges/wireframe-framework-wireframe-renderer-latte/health.svg)](https://phpackages.com/packages/wireframe-framework-wireframe-renderer-latte)
```

###  Alternatives

[slim/twig-view

Slim Framework 4 view helper built on top of the Twig 3 templating component

3708.0M210](/packages/slim-twig-view)[rubellum/slim-blade-view

Slim Framework 3 view helper built on the Blade component

1822.4k2](/packages/rubellum-slim-blade-view)[wireframe-framework/wireframe

Wireframe is an output framework for ProcessWire CMS/CMF.

212.1k2](/packages/wireframe-framework-wireframe)

PHPackages © 2026

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