Skip to content

Instantly share code, notes, and snippets.

@dfkaye
Created June 1, 2015 23:01
Show Gist options
  • Select an option

  • Save dfkaye/3be3b58151c5916b65dd to your computer and use it in GitHub Desktop.

Select an option

Save dfkaye/3be3b58151c5916b65dd to your computer and use it in GitHub Desktop.

Extending ideas from http://robbertbroersma.nl/blog/the-web-needs-xml-the-good-parts/

Stringtemplate script:

<script type="stringtemplate">
  <ul>
    <for-each select="$blogpost/tag" sort reversed group-by=".">
      <li>{{.}}</li>
    </for-each>
  </ul>
</script>

Make it recursive:

<script type="stringtemplate" recursive>
  <ul>
    <for-each select="$blogpost/tag" sort reversed group-by=".">
      <li>{{.}}</li>
    </for-each>
  </ul>
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment