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
- Download the latest release
- Unzip downloaded file
- 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>