I think also that it would be outstanding if we could formulate a way to use something like formlets or digestive-functors with Snap/Heist. Perhaps we could build it on top of hexpat's Node.
Ozgun On 12/9/10 1:28 PM, "MightyByte" <[email protected]> wrote: >Yesterday we were having a discussion along these lines in >#snapframework. Check out http://pastie.org/1360646 that I made >demonstrating one vision that we had when designing Heist. I >discussed it in more depth in the IRC discussion. I think I'll work >on a blog post to record these ideas for better reference. > >On Thu, Dec 9, 2010 at 12:58 PM, Daniel Lyons <[email protected]> >wrote: >> 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 >> >_______________________________________________ >Snap mailing list >[email protected] >http://mailman-mail5.webfaction.com/listinfo/snap _______________________________________________ Snap mailing list [email protected] http://mailman-mail5.webfaction.com/listinfo/snap
