Hello,
There is no such thing as reverse dispatching: the main reason
for that is there might be many routes that lead to the one controller,
for example:
{dynamic, "^/index\.html$", {home, main}}.
{dynamic, "^/$", {home, main}}.
{dynamic, "^/home$", {home, main}}.
However, you can still access the URL user entered getting it
from the process dictionary:
wpart:fget("__path")
(note that there is a double underscore character).
----- "Zoltan Lajos Kis" <[email protected]> wrote:
> Hi all,
>
> I might be missing a point, but how do I refer to the dynamic routes
> in
> dispatcher.conf from within my content?
>
> Taking this example route from the wiki is there a function that does
>
> something like the following function?
>
> {dynamic, "^/blog/post/(?<post_no>[0-9]+)$", {blog, display_post}}.
>
> route:create({blog, display_post}, [{post_no, "23"}]) ->
> "/blog/post/23"
>
>
> Kindest regards,
> Zoltan.
Best regards,
--
Michal Ptaszek
www.erlang-consulting.com
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Erlangweb-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/erlangweb-users
http://www.erlang-web.org/