All Versions
14
Latest Version
Avg Release Cycle
352 days
Latest Release
3078 days ago

Changelog History
Page 2

  • v3.0.2 Changes

    September 30, 2014
    • โž• Added all missing tests.
    • ๐Ÿ‘Œ Improved custom function name validation.
    • ๐Ÿ›  Fixed bug with fallback folders, where the file extension wasn't being applied.
    • ๐Ÿ‘Œ Improved error handling in Template class.
  • v3.0.1 Changes

    September 28, 2014
    • โšก๏ธ Updated extension interface to ensure that an instance of the Engine class be passed to the register() method.
    • Minor code cleanup.
  • v3.0.0 Changes

    September 27, 2014
    • โž• Added ability to share data across templates.
    • โž• Added ability to preassign data to specific templates.
    • โž• Added ability to create one-off template functions, without using an extension.
    • โž• Added new folder "fall backs", where missing folder templates will fall back to the default folder.
    • โž• Added new render() method to Engine class, improving the use of the Engine as the primary API.
    • Templates variables are now accessed without the $this pseudo-variable.
    • Total overhaul to how extensions are registered. Replaced getFunctions() method with new register() method.
    • Section content is no longer assigned to template variables. Use the the section() function instead.
    • ๐Ÿ“‡ Renamed section end() function to stop(). This fits more appropriately with the start() function.
    • ๐Ÿ“‡ Renamed get() function to fetch().
    • ๐Ÿ“‡ Renamed pathExists() method in the Engine class to exists().
    • ๐Ÿ“‡ Renamed getTemplatePath() method in the Engine class to path().
    • ๐Ÿ“‡ Renamed makeTemplate() method in the Engine class to make().
    • โœ‚ Removed the ability to assign template data directly to the Template class. For example: $this->name = 'Jonathan'. This applies both within and outside of templates. Use the data() method instead.
    • โœ‚ Removed getEngine() method from the Template class. There's no reason to need this anymore.
    • โœ‚ Removed addFolders() method from the Engine() class.
    • โœ‚ Removed unloadExtension() and unloadExtensionFunction() methods from the Engine() class.
  • v2.1.0 Changes

    April 02, 2014
    • ๐Ÿ‘Œ Improved DocBlocks throughout the library.
    • ๐Ÿšš The insert() functionality has been moved to a new extension, called Nest.
    • A new get() function was also added with this extension, which offers an alternative syntax for nesting templates.
    • ๐Ÿ‘Œ Improved error messages.
    • A new error check which prevents the calling of the render() function from within templates themselves. If this functionally is required, use the nesting functions instead.
    • โž• Added a clearer error message to the content() function when calling it from a non layout template.
    • โž• Added a clearer error message to the batch() extension function when a provided function does not exist.
    • ๐Ÿ›  Fixed a bug in the engine where it was possible to overwrite a default extension when loading extensions.