Search by

owebstudio / kirby-plates

afbora

Plates native PHP template engine/system for Kirby.

Package info

github.com/owebstudio/kirby-plates

Homepage

Type:kirby-plugin

pkg:composer/owebstudio/kirby-plates

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.1.4 2026-10-30 13:26 UTC

This package is auto-updated.

Last update: 2026-10-30 20:59:54 UTC


README

Plates, a legacy Kirby plugin by oweb studio. Use the Plates template engine for your templates.

Kirby Plates

Note

This plugin is in maintenance mode and only gets security fixes. It supports Kirby 3, 4 and 5. It does not support Kirby 6.

Since Kirby 3.9, Kirby's own snippets with slots and layout snippets cover most of what Plates layouts and sections do. Kirby 6 adds the push() and stack() helpers for things like scripts and styles.

This package enable Plates that Native PHP template engine/system for your own Kirby applications.

All the documentation about Plates template engine is in the official documentation.

Installation

The download and the Git submodule include Plates 3.6, which needs PHP 8.0 or newer. Composer installs the Plates version that fits your PHP version.

Installation with composer

Manual

  1. Download the latest release
  2. Unzip downloaded file
  3. Copy/paste unzipped folder in your /site/plugins folder

With composer

composer require owebstudio/kirby-plates

Git submodule

git submodule add https://github.com/owebstudio/kirby-plates.git site/plugins/kirby-plates

Sample usage

/site/templates/home.php

<?php $this->layout('default') ?>

<h1>User Profile</h1>
<p>Hello, <?=$this->e($name)?></p>


<?php $this->push('scripts') ?>
  <script src="example.js"></script>
<?php $this->end() ?>

/site/templates/layouts/default.php

<html>
  <head>
    <title><?=$this->e($title)?></title>
  </head>
  <body>
    <?=$this->section('content')?>
    <?= $this->section('scripts') ?>
  </body>
</html>