This file records noteworthy changes and additions to erlydtl as suggested by the GNU Coding Standards.
compile_dir (#146).render function has been added
instead (#148).This release brings a row of major internal improvements and also a few new and improved features.
erl_syntax use for merl (#123).compile_dir)
templates to return {ok, Rendered} | {error, Reason} just as for
normally compiled templates. Please note that this is a backwards
incompatible change.endregroup tag has been made optional) (#101).trans tag now supports the {% trans "text string" as Varname
%} construct to catch the translated text rather than output it in
place.{{ block.super }} is now supported in child blocks (#18).Template:variables() now only lists referenced render variables
(#118).erlydtl_library behaviour for adding custom filters and tags
(#137).load tag added. Only difference to that of django is that we
don't support loading a library from a package, as there are no
notion of packages in Erlang (#100).libraries and
default_libraries. See the readme. (the previous
custom_tags_modules and custom_filters_modules are still
supported, although being marked deprecated in favour of the new
options).debug_compiler and debug_root as described in the readme (#139).See milestone 0.9.1 for a complete list of closed issues in this release.
Happy templating!
After some fluctuating stability around 0.8.1, this release brings a set of improvements that has been tested not only by the test suite, but also in a couple of projects.
_file and _template suffixes to the compile
functions to explicitly convey what is to be compiled.auto_escape option if you want this disabled by default.blocktrans blocks can now be translated to multiple locales in
runtime. (thanks to @seriyps).trans and _(...) tags can now be translated to multiple locales
at compile time. (thanks to @seriyps).{out_dir, false}
compile time option (this was possible before as well, when no
out_dir was specified, but that results in a warning).My sincere apologies, this really should have been in the 0.8.1 release.
This release brings the new error/warning options and return values
also to the compile_dir api function.
Backwards incompatible notes:
Please notice that the new error reporting options also introduces subtle incompatible changes in the API (see #126).
It's not hard to adapt, but I want you all to be aware of this when upgrading.
These changes were made already in 0.8.1, but the specs were not, so dialyzer did not pick up on them.
This release is a clean-up release with a bunch of minor issues squeezed out.
for-loops.Warning
The compile_dir function is not updated to the new way of reporting
errors and warnings, and is in a semi-workable state. A fix is
committed to master, and will be included in the next release.
This is a release to bring in all the changes together since 0.7.0, and will be the starting point for a lot of future improvements.
date filter.trans tag with support for .po files Includes a .po
parser and generator, docs, and tests. See README_I18N.Many thanks to David Garcia.
{{var1}}.erlydtl:compile/2,3 a wrapper for erlydtl_compiler:compile/2,3.