>> Rails uses a DSL for mapping routes to controllers,actions, and
>> params, so you can concisely make clean and hackable urls like /
>> posts/
>> 2007/12/02, /posts/tag/holiday, and REST resources. The basic idea
>> is
>> to provide more structure, so that everyone does not have to
>> implement
>> their own custom route system.
> I think that with the ErlyWeb app controller this is even easier, no?
> hook(A) ->
> NewAppmoddata =
> case yaws_arg:appmoddata(A) of
> "/posts/foo" -> "/posts/bar";
> "/posts/bar" -> "/posts/foo";
> Other -> "blah/" ++ Other
> end,
> {ewc, yaws_arg:appmoddata(A, NewAppmoddata)}.
For the record, I prefer it this way
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---