url tag is not supported
kaos opened this issue · comments
Andreas Stenius commented
In django, there's a url
tag. Sure enough, it will be application specific what the result of the url tag is to be.
I think we want to provide some sort of api for it, instead of leaving it for the application to provide it as a custom tag.
Ludovic Dem commented
Basically an URL is a path with some placeholders "/base/path/[some]/[vars]/[...]"
. So we should provide API with a route identifier and vars as in {% url "my_route" some="foo" vars="bar" %}
. The user is responsible to provide a fun in compile options like {url_fun, fun my_router:generate/2}
which is passed the route identifier and the vars.