Re: [Erlangweb-users] Dynamic Yaws Pages
Brought to you by:
etcerlangweb,
paulgray
|
From: Michal P. <mic...@er...> - 2009-12-01 10:12:18
|
Hi,
----- "L. S." <lse...@gm...> wrote:
> The documentation is like a puzzle with missing pieces.
>
> How would the following Yaws snippet example be called in a .yaws
> file:
> <erl module=foobar>
> out(A) ->
> io:format('This is the foobar module', []).
> func() ->
> i_am_exported_from_foobar.
> </erl>
>
Erlang Web does not support Yaws' dynamic pages.
If you would like to move some logic into templates use
one of the template languages supported (XHTML-based wpart or
ErlyDTL).
Separating logic from view is a pretty good idea: why do you
need to put some Erlang code into HTML file?
Best regards,
--
Michal Ptaszek
www.erlang-consulting.com
|