PHPackages                             arnoson/kirby-template-sugar - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. arnoson/kirby-template-sugar

ActiveKirby-plugin[Templating &amp; Views](/categories/templating)

arnoson/kirby-template-sugar
============================

1.0.0(11mo ago)41276[5 issues](https://github.com/arnoson/kirby-template-sugar/issues)MITTypeScriptCI passing

Since Apr 6Pushed 11mo ago2 watchersCompare

[ Source](https://github.com/arnoson/kirby-template-sugar)[ Packagist](https://packagist.org/packages/arnoson/kirby-template-sugar)[ RSS](/packages/arnoson-kirby-template-sugar/feed)WikiDiscussions main Synced yesterday

READMEChangelog (10)Dependencies (1)Versions (21)Used By (0)

   ![](./.github/logo-light.svg)

Kirby Template Sugar
====================

[](#kirby-template-sugar)

A lightweight template compiler that adds some [syntactic sugar](https://en.wikipedia.org/wiki/Syntactic_sugar) to Kirby's php templates.

Kirby's new [snippets with slots](https://getkirby.com/docs/guide/templates/snippets#passing-slots-to-snippets) allow you to adapt a component-based workflow, similar to Laravel blade templates or javascript frameworks like Vue. However, the plain php syntax can be verbose. So with some template sugar you can write this:

```
🍬
