|
|
| Author |
Message |
|
| Guest |
Posted: Mon Nov 30, 2009 8:02 pm |
|
|
|
Guest
|
|
| Back to top |
|
| Guest |
Posted: Tue Dec 01, 2009 10:12 am |
|
|
|
Guest
|
Hi,
----- "L. S." <lsearchw@gmail.com> 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
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Erlangweb-users mailing list
Erlangweb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlangweb-users
http://www.erlang-web.org/
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Wed Dec 02, 2009 5:55 pm |
|
|
|
Guest
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|