Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

readme.md

Willow

Contributors: qlstudio
Tags: Simple, logic-less, procedural, semantic, markup, language
Requires at least: 5.0
Tested up to: 5.5.1
Stable tag: 1.4.8
License: GPL2

Willow ~ A logic-less template engine built for WordPress.

Willow has been designed to meet the needs of both front-end and back-end developers by providing a small, yet powerful set of tags and tools to speed up template development and prototype iteration.

Hello Willow

All Willow tags include a matching opening and closing pair, starting and ending with a curly bracket and one other internal character, as follows:

{~ ui~hello {+ Willow says <strong>{{ hello }}</strong> +} ~}

This tag calls the class ui method hello - ui::hello() - and wraps the returned data in any markup passed in the Willow argument:

class ui {

	public static function hello( $args = null ) {

		// define key + value to render ##
		return [
			'hello' => 'Hello'
		];

	}

}

Return:

Willow says <strong>Hello<strong>

Wiki

Visit the documentation site for further details -> https://qstudio.us/docs/willow/

You can’t perform that action at this time.