This plugin enables to use jade template engine for the template files.
| Author: | Xing (profile at wordpress.org) |
| WordPress version required: | 3.0.0 |
| WordPress version tested: | 3.9.2 |
| Plugin version: | 1.0 |
| Added to WordPress repository: | 04-12-2014 |
| Last updated: | 04-12-2014
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
| Rating, %: | 100 |
| Rated by: | 1 |
| Plugin URI: | http://wordpress.org/plugins/wp-jade-template... |
| Total downloads: | 1 389 |
| Active installs: | 10+ |
![]() Click to start download |
|
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();
ChangeLog
