this is a php port of the Pagstract Templating Framework, a XML template engine, developed by 'freiheit.com'
(from org. docs in german)
Pagstract ist eine einfache Templating-Sprache, die von 'freiheit.com' entwickelt wurde. Dabei wurde bewusst keine vollständige Programmiersprache geschaffen, sondern sich auf einfach Konstrukte, die bei der Anzeige notwendig sind, beschränkt. Dadurch bleibt die Geschäftslogik von der reinen Anzeigelogik getrennt. In einem typischen Anwendungsfall, stellt die Anwendung die notwendigen Daten als PageModel bereit. Diese werden an ein Pagstract-Template übergeben, dass diese Daten dann in einem schönen Layout einbettet und aufbereitet.
done so far:
* generic tokenizing
* markup/pagstract tokenizing and symbolizing, creating abstract symbol tree
* reference resolving and symbolizing, abstract data properties
* (theme inheriting) filename/path resolving
* page/model setup
* generic page assembly
still to do:
* symbolize special data/component properties
* final page assembly
Just checkout the repository and use the classes as you desire...
git clone https://gitlab.bjoernbartels.earth/php/phpagtract.git
Another alternative for downloading the project is to grab it via curl
, and
then pass it to tar
:
cd my/project/dir
curl -#L https://gitlab.bjoernbartels.earth/php/phpagtract/repository/archive.tar.gz?ref=master | tar xz --strip-components=1
please see LICENSE file in project's root directory
© 2016 [Björn Bartels], [email protected], all rights reserved.