Jack William Bell on Nostr: The last few days I've been working on a #Python text template engine, because I had ...
The last few days I've been working on a #Python text template engine, because I had this wild idea and I wanted to see if it would work.
Work it does! Announcing FTemplates, a template engine built as a light wrapper around Python f-strings.
>
https://codeberg.org/jackwilliambell/gists/src/branch/main/Python/ftemplatesIt's well documented, but it's something I threw together in a couple of days – so caveat emptor. That said? I managed to make a full-featured text template engine in 47 lines of actual code! 😛
#programming
Published at
2024-11-26 22:33:06Event JSON
{
"id": "325dd3e8a4c8a03465fb514a6bc7e408eace71aad32a2296febdb87e55c015bf",
"pubkey": "521d02576aeea2999a587c493c9d8ab1f7eeecef25e6d74ddbd9b1c5be40ae33",
"created_at": 1732660386,
"kind": 1,
"tags": [
[
"t",
"python"
],
[
"t",
"programming"
],
[
"proxy",
"https://rustedneuron.com/users/jackwilliambell/statuses/113551631112380384",
"activitypub"
]
],
"content": "The last few days I've been working on a #Python text template engine, because I had this wild idea and I wanted to see if it would work.\n\nWork it does! Announcing FTemplates, a template engine built as a light wrapper around Python f-strings. \n\n\u003e https://codeberg.org/jackwilliambell/gists/src/branch/main/Python/ftemplates\n\nIt's well documented, but it's something I threw together in a couple of days – so caveat emptor. That said? I managed to make a full-featured text template engine in 47 lines of actual code! 😛\n\n#programming",
"sig": "a38eca046187daa1fbc80b38f82e4e9546af48db4e2115e0d2d6ff5330a762abe6d199147cfae1ab8e748f013c94caf2f5f26ffdac7d1b42f54632527040846c"
}