Erlang/OTP Forums

Author Message

<  Erlang Web mailing list  ~  [Erlangweb-users] Dynamic Yaws Pages

Guest
Posted: Mon Nov 30, 2009 8:02 pm Reply with quote
Guest
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>

------------------------------------------------------------------------------
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
Guest
Posted: Tue Dec 01, 2009 10:12 am Reply with quote
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
Guest
Posted: Wed Dec 02, 2009 5:55 pm Reply with quote
Guest
My mistake.

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

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