Skip to content

Releases: arnoson/kirby-template-sugar

v1.0.0

07 Aug 13:18

Choose a tag to compare

   🚨 Breaking Changes

  • Use shorter k: syntax  -  by arnoson (650c7)
    View changes on GitHub

Migration

Snippets

Change prefix from snippet to k.
Example: <snippet:menu><k:menu>

Slots

Change prefix from slot to k:slot. For named slots, move the slot name into the name attribute. Examples:

  • <slot>...</slot><k:slot>...</k:slot>
  • <slot:header>...</slot:header><k:slot name="header">...</k:slot>

Layouts

Kirbys layout plugin is deprecated in favor of snippets. Replace <layout> with a non-closing snippet:

<!-- snippets/layouts/default.kirby -->
<main><?= $slots->default() ?></main>
<!-- templates/default.kirby -->
<k:layouts/default>

<h1>Some Content</h1>

Automatic Migration

Search and replace with these regexes:

  • <(/)?snippet:<$1k:
  • <slot><k:slot>
  • <slot:([\w/]+)><slot name="$1">
  • </slot(:[\w/]+)?><\k:slot>
  • <layout:([\w/]+)(\s*/)?><k:layouts/$1>

v0.4.4

03 Jul 08:49

Choose a tag to compare

   🐞 Bug Fixes

  • Handle tag names with slashes  -  by arnoson (f8ccb)
    View changes on GitHub

v0.4.3

02 Jul 09:26

Choose a tag to compare

   🐞 Bug Fixes

  • Handle windows-style linebreak after snippet name  -  by arnoson (02800)
    View changes on GitHub

v0.4.2

10 Apr 09:04

Choose a tag to compare

   🐞 Bug Fixes

  • Handle closing and self-closing code tags in parser  -  by arnoson (ba539)
    View changes on GitHub

v0.4.1

14 Feb 09:09

Choose a tag to compare

   🐞 Bug Fixes

  • Prevent infinite loop when parsing non-closing heredoc  -  by arnoson (1b3b7)
    View changes on GitHub

v0.4.0

13 Feb 22:27

Choose a tag to compare

   🚀 Features

  • New parser  -  by arnoson (35beb)
    View changes on GitHub

v0.3.2

07 Feb 08:52

Choose a tag to compare

   🐞 Bug Fixes

  • Transform boolean attributes  -  by arnoson (348e5)
    View changes on GitHub

v0.3.1

04 Dec 13:00

Choose a tag to compare

   🐞 Bug Fixes

  • Handle windows-style line breaks  -  by arnoson (e2493)
    View changes on GitHub

v0.3.0

24 Nov 11:02

Choose a tag to compare

   🚨 Breaking Changes

  • Use prefix $ instead of @ for props  -  by arnoson (cef85)

   🚀 Features

  • Add prop shorthand syntax  -  by arnoson (26979)
    View changes on GitHub

v0.2.5

25 Sep 15:53

Choose a tag to compare

   🚀 Features

  • Only write file if content changed  -  by arnoson (10624)
    View changes on GitHub