Screenshot of code for Markup.fragment.html: <div> <h1>This is from an HTML fragment.</h1> <p>As is this.</p> </div>
https://s3-eu-central-1.amazonaws.com/mastodon-aral/media_attachments/files/112/090/213/635/140/874/original/4dcf64e4b56d556d.png
New in Kitten: Markdown fragments
You can now write your Markdown in separate .fragment.md files and import() them in as if they were JavaScript modules, just like HTML and CSS fragments.
And while they don’t support props, they do support slots (including named slots, which you can use as poor man’s props.)
Enjoy!
:kitten: 💕
#Kitten #SmallWeb #web #dev #JavaScript #HTML #CSS #Markdown
076萌SNS is a social network, courtesy of 076. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All 076萌SNS content and data are available under the Creative Commons Attribution 3.0 license.