I'm looking forward a more in-depth explanation of looping in Heist.
Thank you,
Cristian

On Tue, Feb 22, 2011 at 6:52 AM, MightyByte <[email protected]> wrote:
> The short answer is no.  Templates are just text parsed into and
> XML/HTML document.  In this domain there are no types.  Haskell types
> only exist in source code processed by GHC.  Templates are data files
> read at runtime.
>
> It is possible to create looping abstractions in Heist, but that
> requires the question to be formulated differently.  This is a much
> longer answer that would probably be better as a blog post or
> documentation page.  I'll see if I can work on that.
>
> On Mon, Feb 21, 2011 at 11:47 PM, Cristian Petrescu Prahova
> <[email protected]> wrote:
>> Hello.
>> I have a heist question. Is there a way to expose a list variable into a
>> .tpl and map a HTLM fragment generator over the list? Something like <map x
>> : xs><a href="$(x)"><x/></a></map>.
>> Thank you,
>> Cristian
>> _______________________________________________
>> 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