Revision history for Perl extension Template::Plex.
0.4.0
- Template inheritance and slotting
- Requires Perl 5.36 (for isa)
- User subclassing is now possible
- Removed redundant code in in peparing templates
- Sub classes can access metadata (options) and arguments( variables) via
accessor methods meta and args
- The current template is stored in a lexical variable $self
- Template is of type Template::Plex or user subclass
- Added %meta to store filename and load/processing options
- Added 'use' key in options hash to allow using of packages in lexical scope
- Added 'base' key in options hash to specify base class for template
- Much easier to implement new templating systems on top of this module now
- Removed automatic using of String::Util. Templates can use on demand manually
- Fixed bug in recursive template loading that would not update the dynamic
package name
- Added logging support with Log::ger and Log::OK
- jmap now requires at least two arguments and works with array/list
instead of a reference
- Block fix no longer kills multiple newlines after a directive close
- die is called on template compilation error. (=> try/catch)
- Error message include a summary of the error location and tempalte name
- plx and plex function depreciated
- Class methods load/cache/immediate for loading templates
0.3.0 Mon 25 Apr 2022 20:43:10 AEST
- Subtemplates now can modify top level arguments hash (ie add keys not
previously available)
- Added 'skip' sub which cancels the current templates rendering, but
allows variable manipulation
- Added tests for skip and sub template argument manipulation
- Updated pod
0.2.0 Thu 31 Mar 2022 15:05:25 AEST
- Cleanup generated code a little
- Added plx subroutine for automatic loading/caching/rendering
- Added block_fix feature
- Added jmap subroutine
- Added plex_clear basic cache clearing
- Added block and pl subroutine
- Added importing of String::Util subroutines into template
- Updated documentaion
0.1.1 Fri 18 Feb 2022 18:03:48 AEST
- Fixed examples in example directory
- Fixed Changes (wrong package name)
0.1.0 Wed Aug 4 08:58:42 2021
- Inital version