A port of liquid template engine for python
Full Changelog: https://github.com/pwwang/liquidpy/compare/0.8.1...0.8.2
*
modifier for variable block to keep intial indention for multiline strings for all modes
if True:
{{* body }}
with body
:
print("Hello")
print("World")
will be rendered into:
if True:
print("Hello")
print("World")
Note that the indention of print("World")
was passed along from the initial indentaion.env
to Liquid()
not workingFull Changelog: https://github.com/pwwang/liquidpy/compare/0.7.6...0.8.0
Full Changelog: https://github.com/pwwang/liquidpy/compare/0.7.5...0.7.6
pyscript
call
for wild
mode
{{ int | call: "1" | plus 1}} # 2
Full Changelog: https://github.com/pwwang/liquidpy/compare/0.7.4...0.7.5
default
filter work with None
attr
filter work with dictsliquid_map
, in wild mode, instead of map
, which is overridden by python's builtin map
date
filter issues (#38, #40)markdownify
for jekyll (#36, #37)number_of_words
for jekyllsort
slugify
array_to_sentence_string
jsonify
xml_escape
, cgi_escape
and uri_escape
int
, float
, str
and bool
as both filters and globals for all modes (#40)regex_replace
filter+/-
to work with date filter (#38)filters_as_globals
for wild mode (defaults to True
)