alexacallmebaka / kobayashi

a draconic static site builder. 🐉
https://jameshurd.net/projects/kobayashi/manual
3 stars 0 forks source link

HTML literal block in `kby` #6

Open ephing opened 2 months ago

ephing commented 2 months ago

There should be a way to specify literal HTML in the kby file, for cases when the regular kby syntax is not capable of generating the exact structure or set of tags cannot create the desired HTML. This should also be able to distinguish between the head and body section of the HTML.

An example of such syntax is shown below, but its ugly so I'd recommend coming up with something else :)

# Title
[HTML; head]
<meta name="description" property="description" content="This is a website description">
[HTML]

[HTML]
<aside>
    <h4>Subsection name</h4>
[HTML]

Paragraph text that should appear within the aside block goes here

[HTML]
</aside>
[HTML]
alexacallmebaka commented 2 months ago

This has been one of my internal to-dos for a bit, will add to kobayashi soon. Thanks Ethan!