stl and yaws

Mikael Karlsson mikael.karlsson@REDACTED
Tue Jan 14 20:48:41 CET 2003


Thanks for the explanations Mickael et.al.
It is quite clear now :-)
I look forward for the release of STL for Yaws. 

Mikael

tisdag 14 januari 2003 09:16 skrev Mickael Remond:
> In fact, the STL thing allows easy integration of variables (That is to
> say insertion of dynamic content) easily in different part of the
> template.
> In yaws to insert data in the HTML, you have to declare an out/1 function.
> Moreover, each insertion of dynamic content implies an erl set of tag,
> with a out function declaration. Each erl zone ends up being compiled as
> a separate Erlang module.
>
> Finally, with Yaws system, I often end up with one erl zone covering the
> all .yaws file. The main out/1 function is then calling other functions
> (from the same yaws file or from an Erlang module) to insert HTML
> templating element (Header/ Footer).
>
> BRL is not the perfect templating system, but it avoid this problem. I
> still think the way to go would be to code a Zope like (ZPT) templating
> system, each template ending up compile as one module. ZPT allows to
> define the rendering logic in the template (Variables area, iterations)
> and refers to core "business application" code for getting the data or
> triggering the processing writing as Erlang module.
>
> I hope this is more clear for you, now.
>
> Happy new Erlang year !
> -- 
> Mickaël Rémond




More information about the erlang-questions mailing list