Version 0.5 released #37
volfpeter
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Major features
Slot rendering support in
Snippet( Issue: #32 | PR: #33 )
Snippet(andMD, which is based on it) received more processing and rendering utilities. The built-in implementation isSlots, which lets you place placeholders -- by default in<!-- slot[slot-key] -->form -- in the loaded and rendered text (for example plain.htmlor.mdfiles) and automatically map them tohtmycomponents. The mapping rules are defined bySlots. The feature works together withSnippet'stext_processorto give you maximum flexibility.Note that this feature not only supports dynamic slot replacement, but it can also do for example fragment rendering (even in combination with slots) or anything else that uses some kind of string to string or component transformation. More built-in tools may arrive later, depending on what's required by users.
See the documentation for more details. A detailed example will be added to the documentation shortly, see #34.
Beta Was this translation helpful? Give feedback.
All reactions