Changes for version v0.8.0 - 2015-09-17

  • Internal change: `ErrorLogger`'s `log_errors_in_file` method used to report errors in template. `ErrorLogger` v0.6.0 required for that.
  • `tt_broken` attribute replaced with `tt_broken` method. For consumer, it is simpler to override (or modify with `around`) a method rather than work with `CodeRef` (no need to take care about passing `$self` reference).
  • Error reporting changed:
    • If more than one code fragment dies, template is shown only once, but with all the detected errors.
    • "Unmatched opening delimiter" and "Unmatched closing delimiter" messages changed to be consistent with other errors.
    • "Bad code fragment begins at..." messages indented like call stack reported by `croak`. However, these messages indented with 4 spaces, not tab because tab indent size is unpredictable.
    • In template listing, "Bad code fragment begins at ..." error is not shown if actual error occurred in the same line.
    • If number of errors reaches `tt_broken_limit` (10 for now), processing stops.
  • Version switched from old decimal style to new dotted-decimal style.

Documentation

TextTemplater role user manual

Modules

Have text templating capabilities in your Dist::Zilla plugin