.. currentmodule:: fiole
- Replace deprecated
cgi.escape
with a copy of Python 3.4'shtml.escape
.
- Add
Request.host_url
,Request.script_name
andRequest.get_url(path, full=False)
. (Issue #4) - Add
|n
filter to disable default filters. (Issue #5) - Fix caching of
Request.accept*
headers.
- Improve the documentation.
- Add the Fiole application to the WSGI environment:
environ['fiole.app']
. (Issue #1) - Implement parsing of the
Accept
headers, and add them as dynamic properties ofRequest
:accept
,accept_charset
,accept_encoding
andaccept_language
. (Issue #2) - Replace the global
SECRET_KEY
with a new attribute of the Fiole applicationapp.secret_key
. - Replace the helpers
_create_signed_value
and_decode_signed_value
with methods: :meth:`Fiole.encode_signed` and :meth:`Fiole.decode_signed`. The method :meth:`Response.create_signed_value` is removed too. - Remove argument
secret
from therun_fiole
function: useget_app().secret_key = 's3c4e7k3y...'
instead. - The
send_file
helper recognizes theIf-Modified-Since
header and returns "304 Not Modified" appropriately. - Patch the
wsgiref.simple_server.ServerHandler
to stop sendingContent-Length
for status "304 Not Modified". (This is related to a Python bug) - Add
Fiole.debug
boolean flag to let unhandled exceptions propagate. - Rename helper
html_escape
toescape_html
. - Add
default_filters
for the template engine configuration. - Automatically cast Python objects to Unicode for template rendering.
This can be disabled with
engine.default_filters = None
. - Refactor the internals of the template engine. New method
Engine.clear()
to reset the cache of byte-compiled templates. - Support extensibility of the WSGI application with hooks.
- Initial release.