mirror of
https://github.com/kennethreitz-archive/wp-mustache.git
synced 2026-06-05 23:50:19 +00:00
general update. mustache.php at http://github.com/bobthecow/mustache.php/commit/d5de2d4af79f7560ff57bdeeaa7d62e66500582a
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
class Complex extends Mustache {
|
||||
public $header = 'Colors';
|
||||
|
||||
public $item = array(
|
||||
array('name' => 'red', 'current' => true, 'url' => '#Red'),
|
||||
array('name' => 'green', 'current' => false, 'url' => '#Green'),
|
||||
array('name' => 'blue', 'current' => false, 'url' => '#Blue'),
|
||||
);
|
||||
|
||||
public function notEmpty() {
|
||||
return !($this->isEmpty());
|
||||
}
|
||||
|
||||
public function isEmpty() {
|
||||
return count($this->item) === 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user