Erlang/OTP Forums

Author Message

<  Erlyweb mailing list  ~  Seeking advice

dmitriid
Posted: Fri Sep 26, 2008 1:57 pm Reply with quote
User Joined: 17 Aug 2006 Posts: 213
Let's say I have a site which hots multiple documents. I'd like to access them like this:http://site/document_name


I sort of figured it out for ErlyWeb by looking at (rather old) Twoorl code:


hook(A) ->
View user's profile Send private message
dmitriid
Posted: Tue Sep 30, 2008 12:30 pm Reply with quote
User Joined: 17 Aug 2006 Posts: 213
On Sep 26, 2008, at 4:56 PM, Dmitrii Dimandt wrote:
Quote:
Let's say I have a site which hots multiple documents. I'd like to access them like this:http://site/document_name



Ok. I've realized there was the catch_all hook which I implemented in my page_controller.erl. However, if I return ewr from catch_all in this case it still throws up the same error:

Quote:



then returning ewr from the page controller throws up an error:
http://site/hello/


ERROR erlang
View user's profile Send private message

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