On 7/21/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> The recommended way to do this is to create an application that only
> holds your custom tags. Applications don't have to have models or views
> or anything like that. That also makes it easy to reuse your tags in
> other projects: you ju
Malcolm,
thanks for the suggestion... I tried it and it wokrs like expected.
I don't know why, but I had the impression that an application only
load templatetags define it it's own namespace. I should have read the
documentation a more carefully.
Thanks,
Martin
--~--~-~--~~--
On Sat, 2006-07-22 at 02:39 +, Martin wrote:
> Hi,
>
> I was wondering what is the best way to define new tags which don't
> really belong to a specific application.
> For example, I would like to create a urlmatch tag:
>
> {% urlmatch "^accouonts/login/$" }
>Should only be display the c
Hi,
I was wondering what is the best way to define new tags which don't
really belong to a specific application.
For example, I would like to create a urlmatch tag:
{% urlmatch "^accouonts/login/$" }
Should only be display the current url matches the specified reg-ex
{% endurlmatch %}
Lookin
4 matches
Mail list logo