Re: [flask] url_for static?
- From:
- Armin Ronacher
- Date:
- 2010-05-16 @ 08:54
Hi,
On 2010-05-16 5:03 AM, Thadeus Burgess wrote:
> Since 0.2 and module support, the following in the documentation no
> longer works...
It does, just not from within a module. The explanation for that
behavior and how it can be controlled can be found in the documentation
for the url_for function: http://bit.ly/cMF8KB
I will improve the docs though for that sort of thing and also consider
supporting positional arguments on URL building.
Regards,
Armin
Re: [flask] url_for static?
- From:
- Peter Ward
- Date:
- 2010-05-16 @ 03:44
True. The way to do it with modules is to use:
url_for('.static', filename='style.css')
On Sun, May 16, 2010 at 1:03 PM, Thadeus Burgess <thadeusb@thadeusb.com>wrote:
> Since 0.2 and module support, the following in the documentation no
> longer works...
>
> url_for('static', filename='style.css')
>
> Am I missing something or has this feature been removed?
>
> --
> Thadeus
>
--
Peter Ward
http://flowblok.id.au/