We intentionally did not include looping constructs as built-in heist
tags, because we want to encourage a strong separation between view
and business logic.  Looping constructs should be specified in
Haskell.  Our recommendation is that your splices correspond to
domain-specific abstractions, but ultimately you should use whatever
abstractions make your code the most maintainable.

On Mon, Feb 14, 2011 at 6:13 PM, Vo Minh Thu <[email protected]> wrote:
> Hi,
>
> What is the prefered way of invoking multiple <apply>,
> e.g.:
>
>  <ul>
>    <apply template="one-item" />
>    <apply template="one-item" />
>    ...
>    <apply template="one-item" />
>  </ul>
>
> where the number of application is dynamically chosen?
>
> Thanks (and thanks for your awesome work),
> Thu
> _______________________________________________
> 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