Post B5G1IIUEDjloR5Dw6S by amonakov@mastodon.gamedev.place
(DIR) More posts by amonakov@mastodon.gamedev.place
(DIR) Post #B5FwX4glIrsaDQJUPI by amonakov@mastodon.gamedev.place
0 likes, 0 repeats
My take on HTML templating: https://codeberg.org/amonakov/fml.py(my Python is cringe probably, please be gentle)
(DIR) Post #B5FwX4r2ge6QjJ7hQm by wolf480pl@mstdn.io
0 likes, 0 repeats
@amonakov :text"Hello!":text2:htmlp :text2
(DIR) Post #B5FwaW2464TrtAv0gS by wolf480pl@mstdn.io
0 likes, 0 repeats
@amonakov wait no nvm, this one works correctly
(DIR) Post #B5FwgFElSCZdXMafGS by wolf480pl@mstdn.io
0 likes, 0 repeats
@amonakov but this one I think won't work::text"Hello!":text2:htmlp :text
(DIR) Post #B5FxmoFSIPzpoWbk1o by amonakov@mastodon.gamedev.place
0 likes, 0 repeats
@wolf480pl right, sorry about not covering this properly in the readme and the code yet.The intention is that snippets are separated by empty lines or file boundaries.The above is intended to be taken as two snippets, the first invoking :text2 as its last node.
(DIR) Post #B5FyOeMJVrR099rLQO by wolf480pl@mstdn.io
0 likes, 0 repeats
@amonakov but , if I'm reading the code correctly, it will delete :text and treat :text2 as a new snippet header
(DIR) Post #B5G0RxYcn0AGT1K7w8 by amonakov@mastodon.gamedev.place
0 likes, 0 repeats
@wolf480pl yeah, not my best code for sure. I've pushed a commit swapping around one if/elif to correct that and match my intention.
(DIR) Post #B5G0YiM1iG39LHeTyK by wolf480pl@mstdn.io
0 likes, 0 repeats
@amonakov I don't know how this happens but I tend to find bugs in most code I look at...
(DIR) Post #B5G1IIUEDjloR5Dw6S by amonakov@mastodon.gamedev.place
0 likes, 0 repeats
@wolf480pl like a superpower! :)(also, sorry! I probably should have corrected that before posting here)
(DIR) Post #B5G1N7Y8JNYPxmLmCW by wolf480pl@mstdn.io
0 likes, 0 repeats
@amonakov no, I'm sorry, you should not be
(DIR) Post #B5G1W94k0WmlImuD8S by wolf480pl@mstdn.io
0 likes, 0 repeats
@amonakov it's okay to post buggy code, that's how you know if people read it :P
(DIR) Post #B5GCMlv5pTGENM7rQO by wolf480pl@mstdn.io
0 likes, 0 repeats
@amonakovI guess I should also mention that I find the template format very interesting, and it's cool how short the implementation is