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.

Download:

https://clicktonext.com/plugins/plates

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>