[Erlangweb-users] using dispatcher.conf routes in dynamic content
Brought to you by:
etcerlangweb,
paulgray
|
From: Zoltan L. K. <ki...@tm...> - 2009-05-13 06:41:35
|
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.
|