loopy pedestrian✍🏿 on Nostr: gone. COmmited suicide. im thinking of writing a templated DSL for writing HTML ...
gone. COmmited suicide. (npub1csc…kqq2) im thinking of writing a templated DSL for writing HTML directly in C++ and basically reinventing Go’s html/template for {{stuff}} in my template files. i know basically nothing about CGI so im using boost::beast for serving my generated html i guess its super overkill in general but i really have nothing better to do
heres a parser for the file config i wrote yesterday, it works like this:
a: b
c: d
---
{{contents}}
becomes
conf["a"] = "b"
conf["c"] = "d"
Published at
2023-10-01 01:12:49Event JSON
{
"id": "ee5c8efb550ebe00c2596311abe4f21e9a04fe3be0643d1109802520225149de",
"pubkey": "d622efd3f5df967391fd37796b85eb369a6f693e4e1e9fe2d13bd7b35ce86e09",
"created_at": 1696122769,
"kind": 1,
"tags": [
[
"p",
"c430bc9e4e67a373afc0e41fb3e98672a16c4653cd8c1800a089e61c2c7c19ab",
"wss://relay.mostr.pub"
],
[
"e",
"b88e12a0fb10f793e39d4c76868f4477d1d251ac4ed447ba881ec6e8bf8cb78f",
"wss://relay.mostr.pub",
"reply"
],
[
"emoji",
"pleaddeath",
"https://clubcyberia.co/emoji/ShamelessYoinks/pleaddeath.jpg"
],
[
"proxy",
"https://clubcyberia.co/objects/8c1247db-875a-406b-8bf6-02fa8a3e6f5f",
"activitypub"
]
],
"content": "nostr:npub1cscte8jwv73h8t7qus0m86vxw2skc3jnekxpsq9q38npctrurx4sjckqq2 im thinking of writing a templated DSL for writing HTML directly in C++ and basically reinventing Go’s html/template for {{stuff}} in my template files. i know basically nothing about CGI so im using boost::beast for serving my generated html i guess its super overkill in general but i really have nothing better to do:pleaddeath:\n\nheres a parser for the file config i wrote yesterday, it works like this:\n\na: b\nc: d\n---\n{{contents}}\n\n\nbecomes\n\nconf[\"a\"] = \"b\"\nconf[\"c\"] = \"d\"\n\n\nhttps://media.clubcyberia.co/pleroma/acb2bfd83545b5153ba9f0a88a7fb134ed1912f11457965266ca158a6ef3d168.png",
"sig": "e0ac3f125e15759896f4af64e6e34065cae87beaadb2e908d57e458644892f46e5f5d3f6b71965ca1272a2f77bee4aedf6122c0757ccee72671b7c626f39485f"
}