RFC: template engine [ was: Re: Implementing tables - advice wanted ]

Claes Wikstrom klacke@REDACTED
Thu Jun 15 09:45:33 CEST 2006


Yariv Sadan wrote:
>>
>> Lot's of yaws apps have been built using the ?TXT macro
>> from jungerl. Easy.
>>
> 
> 
> Claes, I assume it shouldn't be too difficult to add to Yaws another
> rendering function, which would be used such as
> 
> yaws_api:render("template1.tpl", TemplateData).
> 
> where template1.tpl has such code:
> 
> <html>
> <body>
> <%
> out(Data) ->
 > ....


Yes, that would be easy. Harder but more "yawsish" would be
to work furher along the lines of yaws as of today whare
the file extension is used to decide which "renderer' to use.
This decision is made in yaws_server:suffix_type/2


/klacke




-- 
Claes Wikstrom                        -- Caps lock is nowhere and
http://www.hyber.org                  -- everything is under control
cellphone: +46 70 2097763



More information about the erlang-questions mailing list