3 comments

[ 2.7 ms ] story [ 18.8 ms ] thread
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

  <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