librelist archives

« back to archive

filter/tests per Blueprint

filter/tests per Blueprint

From:
René Neumann
Date:
2013-04-14 @ 18:58
Hi all,

are there any plans to allow filters/tests that are private to a
blueprint? At the moment you can only add them app-wide, which might
lead to name clashes.

I know that I could add them directly to the context as functions, but I
somewhat like this concept of filters and tests :)

- René

Re: [flask] filter/tests per Blueprint

From:
Wouter Bolsterlee
Date:
2013-04-14 @ 19:23
FWIW, I simply use a "blueprintname_filtername" approach for filters
used only in a specific blueprint, and "_blueprintname_filtername" for
"private" internal filters only used inside macros.

    — Wouter


René Neumann schreef op zo 14-04-2013 om 20:58 [+0200]:
> are there any plans to allow filters/tests that are private to a
> blueprint? At the moment you can only add them app-wide, which might
> lead to name clashes.