public static function render_template($tmpl, $data, $strip_whitespace = false) { if (!isset(self::$mustache)) { require(plugin_dir_path(__FILE__)."mustache.php"); self::$mustache = new Mustache(); } $tmpl = self::$mustache->render( $tmpl, $data ); if ($strip_whitespace) { $tmpl = WOOF_HTML::strip_whitespace( $tmpl ); } return $tmpl; }