Hacker News new | ask | show | jobs
by _xhok 4618 days ago
If you want to combine code with markup, I personally think something like web.py's Templetor looks the sexiest/most natural. Here's a sample:

    <table>
        $for i in range(10):
            <tr>
                for j in range(10):
                    <td>$(i*j + 1)</td>
            </tr>
    </table>
which prints out a table of the numbers from 1 to 100 in a 10x10 table.

More information here: http://webpy.org/docs/0.3/templetor

I would also imagine it being a pleasure to represent html as Lisp lists.