Browse Source

Massive rewrite of Template class to implement template inheritance, along with a fallback template (different than concept of a default which just helps catch void in user prefs). As suggested by Alexandros, a caching mechanism replaces the heaps of file_exists() calls in previous implementation, although this introduces more complexity, so watch for bugs! Inheritance implies changes in stylesheet and javascript file loading, in that now all such files inherited from all ancestors are loaded in case a template falls back to one of those ancestors (or the fallback set). Template config file caching and an easy API to get those settings also implemented. Finally, when a template set falls back to another set with a different template engine for a given page, the engine is swapped out dynamically (although this is less than ideal and should be discouraged when authors are creating template sets).

pdontthink 19 năm trước cách đây
mục cha
commit
bd32ccbdf9
1 tập tin đã thay đổi với 724 bổ sung168 xóa
  1. 724 168
      class/template/Template.class.php

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 724 - 168
class/template/Template.class.php


Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác