Releases: AnswerDotAI/fasthtml
Releases Β· AnswerDotAI/fasthtml
v0.4.4
New Features
- Replace
__call__
withrt
in handler functions (#334) - Add
flat_tuple
and use it to allow nested tuples in route responses - Add
body
parameter for decoded body - Move pico-specific components to separate module (#327)
- Add "get" and "post" as default methods on routes (#317)
- Support Reverse URL lookups by exposing
url_for
(#189)
v0.4.3
v0.4.2
v0.4.1
v0.4.0
v0.3.7
v0.3.6
v0.3.5
New Features
- Support
dict
value inhx_vals
(#288) - Add
sess_cls
param toFastHTML
(#284) - Make
index
a special handler name for path "/" get request (#274) - Use
run_in_threadpool
for non-async handlers (#270) - Enhance LaTeX rendering in Markdown with support for environments (#269), thanks to @rian-dolphin
Bugs Squashed
- Duplicate parameters in components.pyi (#255)
v0.3.4
New Features
- Experimental new named-based HTMX routing system (#267)
uri
function to constracturl_for
path params- patch
HTTPConnection.url_path_for
- replace HTTP verb FT attr names with
hx-
prefixed versions, and look up values in route names (withlink
used forhref
attrs) - Default route paths to
/{func.__name__}
- Default route method to
post
if func name isn't an http verb - Support skipping
()
in route decorators