Agreed! It's hard to know what will be best until you try out a few
different approaches.

Building a number of Rails-like helpers is actually very easy with hexpat.
The big next step for me is a nice way to take care of validations.

Ozgun

2010/12/9 Román González <[email protected]>

> Ozgun, like default view helpers (ala Rails)? :-o
>
> Indeed we were having a great discussion regarding the different approaches
> to use Heist, it seems we need to discover what is better *not* to do, and
> the best way to get there is making as much mistakes as we can quickly
> enough ;-)
>
> Roman.-
>
> On Thu, Dec 9, 2010 at 2:10 PM, Ozgun Ataman <[email protected]> wrote:
>
>> 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
>>
>
>
> _______________________________________________
> Snap mailing list
> [email protected]
> http://mailman-mail5.webfaction.com/listinfo/snap
>
>
_______________________________________________
Snap mailing list
[email protected]
http://mailman-mail5.webfaction.com/listinfo/snap

Reply via email to