Permalink
Browse files

Updated Dust-PHP to latest version

  • Loading branch information...
Nomafin committed Jan 4, 2017
1 parent a8f1fea commit dca52821ed0ade3f81bb28711f98cf2ae32030eb
Showing with 12 additions and 1 deletion.
  1. +1 −0 dust/Dust.php
  2. +10 −0 dust/Helper/Ne.php
  3. +1 −1 dustpress.php
View
@@ -86,6 +86,7 @@ public function __construct(Parser $parser = NULL, Evaluator $evaluator = NULL)
"if" => new Helper\IfHelper(),
"lt" => new Helper\Lt(),
"lte" => new Helper\Lte(),
+ "ne" => new Helper\Ne(),
"gt" => new Helper\Gt(),
"gte" => new Helper\Gte(),
"default" => new Helper\DefaultHelper(),
View
@@ -0,0 +1,10 @@
+<?php
+namespace Dust\Helper;
+
+class Ne extends Comparison
+{
+ public function isValid($key, $value) {
+ return $key != $value;
+ }
+
+}
View
@@ -6,7 +6,7 @@
Author: Miika Arponen & Ville Siltala / Geniem Oy
Author URI: http://www.geniem.com
License: GPLv3
-Version: 1.3.9
+Version: 1.3.10
*/
final class DustPress {

0 comments on commit dca5282

Please sign in to comment.