librelist archives

« back to archive

select_jinja_autoescape

select_jinja_autoescape

From:
dag.odenhall@gmail.com
Date:
2011-01-29 @ 00:31
“The list of extensions with autoescape enabled is hardcoded (i use .jhtml).”
— http://feedback.flask.pocoo.org/message/43

I think we need to clarify in the documentation that subclassing
flask.Flask is the *right* way to do certain things, and which/how.

To the poster of the above feedback: http://flask.pocoo.org/snippets/41/

It's documented[1] but not clearly as intended to allow for overrides.

[1] <http://flask.pocoo.org/docs/api/#flask.Flask.select_jinja_autoescape>

Re: select_jinja_autoescape

From:
dag.odenhall@gmail.com
Date:
2011-01-29 @ 00:34
Sent this as a reply to the feedback app announcement but apparently
you're not allowed to mess with the subject. Weak.

On 29 January 2011 01:31, dag.odenhall@gmail.com <dag.odenhall@gmail.com> wrote:
> “The list of extensions with autoescape enabled is hardcoded (i use .jhtml).”
> — http://feedback.flask.pocoo.org/message/43
>
> I think we need to clarify in the documentation that subclassing
> flask.Flask is the *right* way to do certain things, and which/how.
>
> To the poster of the above feedback: http://flask.pocoo.org/snippets/41/
>
> It's documented[1] but not clearly as intended to allow for overrides.
>
> [1] <http://flask.pocoo.org/docs/api/#flask.Flask.select_jinja_autoescape>
>