Template engine

Plates native PHP template system for Kirby 3

Kirby Plates

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

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

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>

VERSION
1.1.0
LAST UPDATE
2022-03-20
PUBLISHED
2021-12-27
COMPATIBLE KIRBY
3.5.x, 3.6.x

Free License

Free

  • Lifetime
  • No credit card required
  • Unlimited websites
  • Read the license details