2 ms·
Scripty – A Minimal Scripting Language
- anitil 5mo agoI always enjoy reading about minimal languages and what they offer. In this case Kristoff has designed a small language that must define a single expression (no loops or variables etc). It reminds me a little bit of jq
- ifh-hn 5mo agoI have read the page and have no idea what this is...
- anitil 5mo agoThere's a couple of examples in the repo [0] eg <ul :loop="$page.subpages()"> <li href="$loop.it.link()" :text="$loop.it.title"></li> </ul> Which allows you to inject scripting queries in the attribute strings (where you might, for example, define what 'page' and 'loop' mean in your state management code). There's also a markdown example too [0] https://github.com/kristoff-it/scripty https://github.com/kristoff-it/scripty