內容簡介
PHAMLP for WordPress 可以使用 HAML 模板系統來建立佈景主題。HAML 取代大部分 HTML/PHP 模板檔案混亂不堪的標籤,使用更乾淨、具層次性的標記語言。
啟用 PHAMLP for WordPress 後,任何純 HTML/PHP 佈景主題皆可運作。但 WordPress 佈景主題中的每個模板(從 index.php 到 author.php)都可以用相應的 .haml.php 檔案替換,亦可透過 PHAMLP for WordPress 進行處理。
HAML 範例
!!! 5
%html
%head
%title Welcome to my web site
%body
#header
%h1 Welcome!
#content
#greeting Hello world!
#footer
#copyright-notice (c) forever by me!
未來版本將提供一個名為「TwentyHAMLTen」的範例主題。
授權
PHAMLP for WordPress 是 wp-haml 的分支,因此使用 ISC 授權條款。
PHAMLP 的授權條款為 New BSD License。
TwentyHAMLTen 主題是 TwentyTen 主題的衍生版本,繼承原始主題的 GPL 授權條款。
外掛標籤
開發者團隊
原文外掛簡介
PHAMLP for WordPress enables theme creation using the HAML template system. HAML replaces the tag soup of most HTML/PHP templates with a cleaner, hierarchical markup language.
Any plain HTML/PHP theme will work while PHAMLP for WordPress is enabled. But the individual templates that make up a WordPress theme, from index.php to author.php, can be replaced with a corresponding .haml.php file and PHAMLP for WordPress will process them.
HAML Example
!!! 5
%html
%head
%title Welcome to my web site
%body
#header
%h1 Welcome!
#content
#greeting Hello world!
#footer
#copyright-notice (c) forever by me!
A “TwentyHAMLTen” example theme will be included in future versions.
Licenses
PHAMLP for WordPress is a fork of wp-haml, and is therefore available under the ISC license.
PHAMLP is redistributed under the terms of the New BSD License.
The TwentyHAMLTen theme is a derivative of the TwentyTen theme that ships with WordPress and inherits the original theme’s GPL license.
