-
Notifications
You must be signed in to change notification settings - Fork 0
Kirby Plates
Ahmet Bora edited this page Sep 15, 2022
·
1 revision
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 the latest release
- Unzip downloaded file
- Copy/paste unzipped folder in your
/site/plugins
folder
composer require owebstudio/kirby-plates
git submodule add https://github.com/owebstudio/kirby-plates.git site/plugins/kirby-plates
<?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() ?>
<html>
<head>
<title><?=$this->e($title)?></title>
</head>
<body>
<?=$this->section('content')?>
<?= $this->section('scripts') ?>
</body>
</html>