PukiWiki Theme element changes

  • ページ: BugTrack2
  • 投稿者: ヨルダンC
  • 優先順位: 低
  • 状態: 却下
  • カテゴリー: その他
  • 投稿日: 2008-07-15 (火) 20:33:16
  • バージョン:

メッセージ

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:

<html>
<head><title>Title</title></head>
<body>
// Some tables, whatever
<?php echo $header; ?>
<?php echo $body; ?>
<?php echo $footer; ?>

</body>
</html>

$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!!


  • Please, in pre-emption of "this is in the wrong area, we need 403,000 different topics for each minutial edit", this is on the fucking page. -- JordanC 2008-07-18 (金) 08:16:34

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

PukiWiki 1.5.2+ © 2001-2019 PukiWiki Development Team. Powered by PHP 5.6.40-0+deb8u7. HTML convert time: 0.188 sec.

OSDN