Skip to content
This repository was archived by the owner on Feb 4, 2022. It is now read-only.
This repository was archived by the owner on Feb 4, 2022. It is now read-only.

Synchronize template layer with Joomlatools Framework #177

@ercanozkaya

Description

@ercanozkaya

Changes in joomlatools/joomlatools-framework#151 should be brought in. Also see: #169

Notes:

The hardest to port change would be the handling of templates that are rendered by source instead of by path. To be able to calculate the imports the template url needs to be passed along, this is not the case now.

In Kodekit we have consolidated the template loading into one render method where '$source' can be either a path or string blob. See: https://github.com/timble/kodekit/blob/master/code/template/engine/kodekit.php#L81

This is needed to be able to quality partials and relative template url's. See: joomlatools/joomlatools-framework@cabccaa#diff-2cae596c600d14980457c7181c51b1ecR370

Changes:

1. Allow to bypass file types from rendering.

2. Improve template error handling

3. Module filter regex is to greedious

4. Improve loading from source in template engine

5 . Improve template locator

6. Detect template recursion

7. Add KTemplateLocatorFactory::locate() method

8. Improve file locator

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions