The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 0.60 - 2008-10-03

  • => Milestone! Highlights:
    • Dynamic Includes (a.k.a processed includes)
    • Interpolation in includes
    • Chomping (global & per directive)
    • Template name access through $0
    • Explicit types to compile()
  • => Increased some PREREQ versions for prehistoric perls as the cache tests are failing under 5.6.x.

Changes for version 0.54_18 - 2008-10-03

  • => Fix for 24-include-paths.t.

Changes for version 0.54_17 - 2008-10-02

  • => Implemented placeholder tests except 22-monolith.t (TODO)

Changes for version 0.54_16 - 2008-10-02

  • => Typo in token dumper. => Pod updates for new functionality.

Changes for version 0.54_15 - 2008-10-01

  • => Moved token indexes into ::Constants. => Renamed some internal constants. => Fixed and documented explicit type passing to compile(). => Changed token format (swapped id <-> str).

Changes for version 0.54_14 - 2008-10-01

  • => Re-implemented the previous overcomplicated and buggy chomping interface. This is now solid.
    • Removed buggy chomping tests.
    • Also moved the chomping action into the parser.
  • => Improved token dumping.

Changes for version 0.54_13 - 2008-09-23

  • => Renamed the test to "26-template-name-dollar-zero.t" as either the shell or the test suite seem to expand $0 in the file name. Weird, but too lazy to investigate the real cause.

Changes for version 0.54_12 - 2008-09-22

  • => Fixed template name access through $0. => New placeholder test.

Changes for version 0.54_11 - 2008-09-20

  • => Split Text::Template::Simple into smaller base classes. => Internal cleanup.

Changes for version 0.54_10 - 2008-09-20

  • => tts() wrapper function. => Implement 25-chomp.t. => Fix tokenizer bug.

Changes for version 0.54_09 - 2008-09-17

  • => Internal cleanup. => Implemented collapse/chomp/no-chomp per directive. This hopefully completes the chomp() interface. Unit tests & Pod to come... => Added roadmap & flow chart to distro.

Changes for version 0.54_08 - 2008-09-15

  • => More fixes for the _chomp(). => Implemented pre/post chomp and collapse (tricky!).

Changes for version 0.54_07 - 2008-09-14

  • => Pod typos. => I/O layer fix. => Added ltrim/rtrim to Util. => Implemented the chomping inside the tokenizer.

Changes for version 0.54_06 - 2008-09-13

  • => You can now use $0 inside templates to access to the name of the template. => Added support for pre/post chomping (a la TT) into the tokenizer. The rest of the tokenizer or the parser currently does not support that, so it's practically useless for now (<%- -%>, <%=- -%>, etc.).

Changes for version 0.54_05 - 2008-09-12

  • => Implemented include paths.

Changes for version 0.54_04 - 2008-09-10

  • => Internal cleanup. => Improved interpolation of includes.

Changes for version 0.54_03 - 2008-09-07

  • => Added a test for changing the default delimiters. => Pod update: if the template is a FH, it will not be closed after reading.

Changes for version 0.54_02 - 2008-09-07

  • => Implemented comment directives. => Removed fix_uncuddled. Seemed like nonsense :p => Added DEBUG_TOKENS to the tokenizer. => Implemented & documented the no "monolith" option (also renamed cache_monolith to monolith). => ".tts" is now the official file extension for Text::Template::Simple templates. Updated test suite and Pod to reflect this.

Changes for version 0.54_01 - 2008-08-30

  • => Fix _parser_id(). => Pod updates. => Implemented the "dynamic" include directive. => Implemented interpolation in includes => New tests for includes. => Removed deprecated parts. => New cache file format. => All files are now in UTF-8 encoding.

Modules

Simple text template engine
Base class for Text::Template::Simple
Base class for Text::Template::Simple
Base class for Text::Template::Simple
Base class for Text::Template::Simple
Caller stack tracer
Utility functions

Examples