[erlang-questions] ErlyWeb

Roberto Saccon rsaccon@REDACTED
Thu Nov 2 15:31:45 CET 2006


Thanks for the answers, I am happy to see that my assumption was
wrong, about erlyweb being tied to mysql.

Now I have a different problem: I have created several components
which represent different pages of a website, for example the main
page (to be accessed as: http://someurl/myapp/index)

src/componenents/index/

contains

index_contoller.erl
-------------------------
-module(index_controller).
-export([index/1]).
index(A) ->
  {data, "hello world"}.

index_view.erl
--------------------
before
<%@ index(Data) %>
after


I expected that after compiling with erlyweb to get a page rendered
with the outer template (myapp_app_view.et) and inside the
inner-template (index_view.erl) with <%@ index(Data) %> substituted by
"hello world", but all I get is just the outer template.  Any idea how
I can get it right ?

regards
-- 
Roberto Saccon



More information about the erlang-questions mailing list