Hacker News new | ask | show | jobs
by anitil 36 days ago
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