Hacker News new | past | comments | ask | show | jobs | submit login

I use XQuery. You write HTML as usual, and everything between {} parens is evaluated.

For example

  <a>{1 to 10}</a>
is evaluated to

  <a>1 2 3 4 5 6 7 8 9 10</a>
Or

  <a>{(1 to 10)!<b>{.}</b>}</a>
becomes

  <a><b>1</b><b>2</b><b>3</b><b>4</b><b>5</b><b>6</b><b>7</b><b>8</b><b>9</b><b>10</b></a>
XQuery is a W3C standard, so there are several implementation of it. I wrote an XQuery interpreter (http://www.videlibri.de/xidel.html) myself



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: