Releases: arnoson/kirby-template-sugar
Releases · arnoson/kirby-template-sugar
v1.0.0
🚨 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
v0.4.3
🐞 Bug Fixes
- Handle windows-style linebreak after snippet name - by arnoson (02800)
View changes on GitHub
v0.4.2
🐞 Bug Fixes
- Handle closing and self-closing code tags in parser - by arnoson (ba539)
View changes on GitHub
v0.4.1
🐞 Bug Fixes
- Prevent infinite loop when parsing non-closing heredoc - by arnoson (1b3b7)
View changes on GitHub
v0.4.0
v0.3.2
v0.3.1
v0.3.0
🚨 Breaking Changes
- Use prefix
$instead of@for props - by arnoson (cef85)
🚀 Features
- Add prop shorthand syntax - by arnoson (26979)