aboutsummaryrefslogtreecommitdiff
path: root/lib/less.php/Tree/Javascript.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/less.php/Tree/Javascript.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/less.php/Tree/Javascript.php b/lib/less.php/Tree/Javascript.php
new file mode 100644
index 0000000..1b03183
--- /dev/null
+++ b/lib/less.php/Tree/Javascript.php
@@ -0,0 +1,30 @@
+<?php
+
+/**
+ * Javascript
+ *
+ * @package Less
+ * @subpackage tree
+ */
+class Less_Tree_Javascript extends Less_Tree{
+
+ public $type = 'Javascript';
+ public $escaped;
+ public $expression;
+ public $index;
+
+ /**
+ * @param boolean $index
+ * @param boolean $escaped
+ */
+ public function __construct($string, $index, $escaped){
+ $this->escaped = $escaped;
+ $this->expression = $string;
+ $this->index = $index;
+ }
+
+ public function compile(){
+ return new Less_Tree_Anonymous('/* Sorry, can not do JavaScript evaluation in PHP... :( */');
+ }
+
+}