maettig.com

Thiemos Archiv

Beyond The Template Engine - kritischer, sehr fundierter Artikel zu Sinn und Unsinn von Template Engines wie z.B. Smarty. Die auch in meinen Augen ideale Lösung wird gleich mitgeliefert.
That solution (extracting of marker array followed by parsing/including of template file) is also what I'm moving more and more to. The only difference is that I use {...} instead of <?php..?> for improved readability; the pseudo-tags are translated to real php tags before parsing with eval(). The main thing is not to rebuild all sorts of standard php functions but simply use the existing ones.
milov
Nice hybrid solution, Milo. I think I'll have to write an own article about this issue (about loops, sub-templates, conditions etc.).
Thiemo

Kommentare zu diesem Beitrag können per E-Mail an den Autor gesandt werden.

[ ← Zurück zur Übersicht ]

Impressum & Datenschutz