##// END OF EJS Templates
formatter: map -Tjson(...) and -Tcbor(...) to templater...
formatter: map -Tjson(...) and -Tcbor(...) to templater Even though custom JSON output could be generated by using --config template.json="{dict(...)|json}" ..., doing that is tedious because of the trailing comma handling. This patch introduces special syntax for JSON/CBOR formats. -Tjson(...) is translated to template as if function-style template definition were supported: [templates] json(...) = "{dict(...)|json}" json(...):docheader = "[\n " json(...):docfooter = "\n]\n" json(...):separator = ",\n "
Yuya Nishihara -
r43371:1d12ae50 default
Show More
Name Size Modified Last Commit Author
/ mercurial / thirdparty / attr
LICENSE.txt Loading ...
__init__.py Loading ...
_compat.py Loading ...
_config.py Loading ...
_funcs.py Loading ...
_make.py Loading ...
converters.py Loading ...
exceptions.py Loading ...
filters.py Loading ...
validators.py Loading ...