I don't have the tutorials in front of me at the moment (just warning you in case I get this a little wrong). With the .et files you'll see a line of the form:
<%@ detail(Entry) %> this defines the function detail and binds Entry to the first and only parameter passed in. Other functions can be defined in this manner. Jeff. 5hundy wrote: > Hi, I have 2 questions about the Introduction Tutorial. > > I'm using erlyweb 0.7 > > 1) I have problems with forming the href links. From entry_view.et, if > I leave the code as it is, > I get links like: > http://localhost:8000/entry/detail/1 > instead of: > http://localhost:8000/blog/entry/detail/1 > > I fixed this by doing dropping the first '/' from the href link. > Unfortunately the detail pages now have really messed up links like: > http://localhost:8000/blog/category/detail/entry/detail/2 > > Am I doing something wrong here? > > 2) This is a conceptual question - could someone please explain to me > the meaning behind: > > <% Entry %> (from entry_view.et) > and > <% Entries %> (from category_view.et) > and > <% Data %> (from html_container_view.et) > > I don't understand what these are bound to and why. My assumption for > the 1st two is that erlyweb is doing something with the 1:many and the > many:1 relations to generate these. The plural is throwing me - does > erlyweb do pluralization expansions like rails? > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "erlyweb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en -~----------~----~----~----~------~----~------~--~---
