WP Jade Template
v1.0xingxing2d · 2014年12月4日 上架
WP Jade Template enables to use jade template engine for the wordpress theme's template files.
- 正在使用
- 10+
- 评分
- 5.0 / 5
- 累计下载
- 1,895
- 最近更新
- 2014年12月4日
1 条评价需要 WordPress 3.0.0+已测试到 3.9.40
WP Jade Template enables to use jade template engine for the wordpress theme’s template files.
To override the default template with Jade format, Just create a Jade Template and add the ‘.jade’ before ‘.php’ to its original name.
index.php
index.jade.php
single.php
single.jade.php
page-contact.jade.php
page-aboutus.jade.php
…
The overrided Jade Template will serve if it exists.
Jade template examples
index.jade.php:
- get_header(); div#content div Hello world - get_footer();
To use jade header and footer:
//rendering header-main.jade.php and footer-main.jade.php
- get_header('main.jade');
div#content
div Hello world
- get_footer('main.jade');
Page template example:
// // Template Name: Contact Page // - get_header(); - the_post(); div#content - the_content(); - get_footer();