Scripty – A Minimal Scripting Language(kristoff.it)
kristoff.it
Scripty – A Minimal Scripting Language
https://kristoff.it/blog/scripty/
3 comments
I 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
I have read the page and have no idea what this is...
There's a couple of examples in the repo [0] eg
[0] https://github.com/kristoff-it/scripty
<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