adamkiss/kirby-view
最新稳定版本:0.1.1
Composer 安装命令:
composer require adamkiss/kirby-view
包简介
Tempest View template engine for Kirby CMS
关键字:
README 文档
README
This package enables Tempest/View for your own Kirby applications.
Note
This is a very first, beta version of the plugin; I wanted to use Tempest View with Kirby, but haven't yet had time to add tests, etc. Continue on your own risk.
Installation
Installation with composer
composer require adamkiss/kirby-view
What is Tempest/View
According to Tempest internals → View specifications:
Tempest View is a server-side templating engine powered by PHP. Most of its syntax is inspired by Vue.js. Tempest View aims to stay as close as possible to HTML, using PHP where needed. All syntax builds on top of HTML and PHP so that developers don't need to learn any new syntax.
Usage
After installing the plugin, any template ending in .view.php will be automatically processed by the plugin; All the snippets ending in .view.php will be also available as tempest x- components, i.e. site/snippets/layout.php will be available as x-layout.
You can also use pure PHP snippets with View, just use the included component x-snippet:
<x-snippet name="my-snippet" argument="static" :another="'dynamic'"></x-snippet>
All the documentation about Tempest/View is in the official documentation.
Views
All the generated (cached) views are stored in {cache location}}/views directory.
Credits
Copyright & License
2025 Adam Kiss
Licensed under MIT license
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-10