Erlang Mailing Lists

Author Message

<  Erlyweb mailing list  ~  Simple question; what URL is associated with html_container_

Guest
Posted: Thu Aug 07, 2008 6:43 pm Reply with quote
Guest
This may be a stupid question; but I setup the basic erlyweb
application; able to compile and and start yaws with erlyweb.

When I visit the root URL, http://localhost:9980/ I get the
"index.html" page. How do I get to the HTML content from the
html_container_view.et file.

I was thinking it was this:

http://localhost:9980/riki

Where riki is my appname, but that didn't work.

With the following structure:
./riki
./riki/ebin
./riki/ebin/html_container_controller.beam
./riki/ebin/html_container_view.beam
./riki/ebin/riki_app_controller.beam
./riki/ebin/riki_erlyweb_data.beam
./riki/README
./riki/src
./riki/src/components
./riki/src/components/html_container_controller.erl
./riki/src/components/html_container_view.et
./riki/src/riki_app_controller.erl
./riki/www
./riki/www/style.css
./riki/www/index.html

Here is my yaws.conf

<server localhost>
port = 9980
listen = 0.0.0.0
docroot = c:/projects/tools/home/projects/rik
dir_listings = true
appmods = <"/", erlyweb>
<opaque>
appname = riki
</opaque>
</server>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post received from mailinglist
Guest
Posted: Thu Aug 07, 2008 7:47 pm Reply with quote
Guest
On Aug 7, 2:42 pm, Berlin Brown <berlin.br...@gmail.com> wrote:
> This may be a stupid question; but I setup the basic erlyweb
> application; able to compile and and start yaws with erlyweb.
>
> When I visit the root URL,http://localhost:9980/I get the
> "index.html" page. How do I get to the HTML content from the
> html_container_view.et file.
>
> I was thinking it was this:
>
> http://localhost:9980/riki
>
> Where riki is my appname, but that didn't work.
>
> With the following structure:
> ./riki
> ./riki/ebin
> ./riki/ebin/html_container_controller.beam
> ./riki/ebin/html_container_view.beam
> ./riki/ebin/riki_app_controller.beam
> ./riki/ebin/riki_erlyweb_data.beam
> ./riki/README
> ./riki/src
> ./riki/src/components
> ./riki/src/components/html_container_controller.erl
> ./riki/src/components/html_container_view.et
> ./riki/src/riki_app_controller.erl
> ./riki/www
> ./riki/www/style.css
> ./riki/www/index.html
>
> Here is my yaws.conf
>
> <server localhost>
> port = 9980
> listen = 0.0.0.0
> docroot = c:/projects/tools/home/projects/rik
> dir_listings = true
> appmods = <"/", erlyweb>
> <opaque>
> appname = riki
> </opaque>
> </server>

Nevermind. I believe I can't access html_container directory as that
is some kind of container component. I should create a controller/
view that leverages those modules?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post received from mailinglist

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