PukiWiki Theme element changes


The idea of a theme should be to somewhat make the idea of skinning and changing the layout of a website easier. When you've got functions defined within a theme and then other PHP code, it's indicative that there needs to be a structure within PukiWiki which handles code blocks rather than just using PHP code inside the theme.

An idea would be for instance, a database object such as $theme, which contained various predefined blocks of HTML code which would be printed when the object be referenced. SMARTY is very nice at doing this, but as per previous concerns it should be optional and not mandatory as it is way too slow.

For example:

// Some tables, whatever
<?php echo $header; ?>
<?php echo $body; ?>
<?php echo $footer; ?>


$header, $body and $footer are EXTREMELY BASIC examples of how a variable interpolation theme could occur. I imagine the somewhat strange of you are asking "Why not use Smarty" - the answer is that it is TOO BIG AND SLOW!!

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2008-07-18 (金) 08:16:34
Site admin: PukiWiki Development Team

PukiWiki 1.5.4+ © 2001-2022 PukiWiki Development Team. Powered by PHP 5.6.40-0+deb8u12. HTML convert time: 0.260 sec.