I'm curious as to what sorts of "design patterns" others are using for
writing data-driven web-apps using Heist.
I can see two ways forward: one would be to just make a bunch of
content and then stick it in with a bind. Another would be to make
new splices, perhaps that call back into the database.
To give a concrete example, in PHP I would have something like this:
<table>
<? foreach(getRows("SELECT name, age FROM foo") as $row): ?>
<tr>
<td><?= $row['name'] ?></td>
<td><?= $row['age'] ?></td>
</tr>
<? endforeach; ?>
</table>
I'm curious how you would approach doing something like this
(rendering a table based on an SQL query) with Heist.
Thanks!
--
Daniel
_______________________________________________
Snap mailing list
[email protected]
http://mailman-mail5.webfaction.com/listinfo/snap