NEWS 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <!-- -*- mode: markdown -*- -->
  2. ErlyDTL NEWS file
  3. -----------------
  4. This file records noteworthy changes and additions to erlydtl as
  5. suggested by the [GNU Coding
  6. Standards](http://www.gnu.org/prep/standards/html_node/NEWS-File.html#NEWS-File).
  7. # master (upcoming release)
  8. * Added NEWS file.
  9. # 0.9.1 (2014-03-02)
  10. This release brings a row of major internal improvements and also a few new and improved features.
  11. * Replaced most of `erl_syntax` use for merl (#123).
  12. * Refactored compiler and test suite (#134, #136).
  13. * Updated result value for directory-compiled (`compile_dir`)
  14. templates to return `{ok, Rendered} | {error, Reason}` just as for
  15. normally compiled templates. Please note that this is a **backwards
  16. incompatible change**.
  17. * Regroup tag is now Django compatible! (the formerly required
  18. `endregroup` tag has been made optional) (#101).
  19. * The `trans` tag now supports the `{% trans "text string" as Varname
  20. %}` construct to catch the translated text rather than output it in
  21. place.
  22. * `{{ block.super }}` is now supported in child blocks (#18).
  23. * `Template:variables()` now only lists referenced render variables
  24. (#118).
  25. * New `erlydtl_library` behaviour for adding custom filters and tags
  26. (#137).
  27. * New `load` tag added. Only difference to that of django is that we
  28. don't support loading a library from a package, as there are no
  29. notion of packages in Erlang (#100).
  30. * New compile options supporting the load tag: `libraries` and
  31. `default_libraries`. See the readme. (the previous
  32. `custom_tags_modules` and `custom_filters_modules` are still
  33. supported, although being marked deprecated in favour of the new
  34. options).
  35. * New compile options for aid in debugging erlydtl itself:
  36. `debug_compiler` and `debug_root` as described in the readme (#139).
  37. See milestone 0.9.1 for a complete list of closed issues in this release.
  38. Happy templating!
  39. # 0.9.0 (2014-02-17)
  40. 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.
  41. * API changes. Added `_file` and `_template` suffixes to the compile
  42. functions to explicitly convey what is to be compiled.
  43. * Autoescape is now enabled by default. Use the relatively new
  44. `auto_escape` option if you want this disabled by default.
  45. * `blocktrans` blocks can now be translated to multiple locales in
  46. runtime. (thanks to @seriyps).
  47. * `trans` and `_(...)` tags can now be translated to multiple locales
  48. at compile time. (thanks to @seriyps).
  49. * Don't want to save the compiled .beam file? Use `{out_dir, false}`
  50. compile time option (this was possible before as well, when no
  51. out_dir was specified, but that results in a warning).
  52. * The error reporting has been fixed for certain cases.
  53. # 0.8.2 (2014-01-29)
  54. My sincere apologies, this really should have been in the *0.8.1*
  55. release.
  56. This release brings the new error/warning options and return values
  57. also to the `compile_dir` api function.
  58. **Backwards incompatible notes:**
  59. Please notice that the new error reporting options also introduces
  60. subtle incompatible changes in the API (see #126).
  61. It's not hard to adapt, but I want you all to be aware of this when
  62. upgrading.
  63. These changes were made already in *0.8.1*, but the specs were not, so
  64. dialyzer did not pick up on them.
  65. # 0.8.1 (2014-01-19)
  66. This release is a clean-up release with a bunch of minor issues squeezed out.
  67. * Improved options for error reporting.
  68. * new auto_escape compile option for django purists.
  69. * Cleaned out some warnings given by Dialyzer.
  70. * Major improvements to the generated code for `for`-loops.
  71. **Warning**
  72. The `compile_dir` function is not updated to the new way of reporting
  73. errors and warnings, and is in a semi-workable state. A fix is
  74. committed to *master*, and will be included in the next release.
  75. # 0.8.0 (2014-01-10)
  76. This is a release to bring in all the changes together since *0.7.0*,
  77. and will be the starting point for a lot of future improvements.
  78. # 0.7.0 (2011-03-21
  79. * Support no-argument version of `date` filter.
  80. # 0.6.0 (2010-04-28)
  81. * Implement `trans` tag with support for .po files Includes a .po
  82. parser and generator, docs, and tests. See README_I18N.
  83. Many thanks to David Garcia.
  84. # 0.5.3 (2009-08-13)
  85. * Create "ebin" directory if it does not exist. Thanks to uri.sharf
  86. for the bug report, ja...@nialscorva.net for the patch.
  87. # 0.5.2 (2009-02-13)
  88. * Do not require a space between a variable name and closing bracket,
  89. e.g. allow `{{var1}}`.
  90. # 0.5.1 (2008-10-23)
  91. * Issue [#6](https://github.com/erlydtl/erlydtl/pull/6) (Dependencies fix).
  92. * Applied patch from Dan Milstein to fix a crash when rendering floats.
  93. * Added a baseline failing test case for the problem.
  94. # 0.5.0 (2008-08-07)
  95. * Run functional tests from "make test".
  96. * Clean up the output from all test suites.
  97. * New README file.
  98. * Remove create_parser stuff because "make" handles this.
  99. * Make `erlydtl:compile/2,3` a wrapper for `erlydtl_compiler:compile/2,3`.