JsRender/NodeToVala.vala
authorAlan Knowles <alan@roojs.com>
Thu, 4 Sep 2014 06:14:57 +0000 (14:14 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 4 Sep 2014 06:14:57 +0000 (14:14 +0800)
JsRender/NodeToVala.vala

index dd42ae4..32036e3 100644 (file)
@@ -501,9 +501,10 @@ public class JsRender.NodeToVala : Object {
                        this.ignore(p);
                        var v = this.node.get(p);
                        
-
+                       var is_raw = this.node.props.has_key("$ " + p);
+                       
                        // what's the type.. - if it's a string.. then we quote it..
-                       if (iter.get_value().type == "utf8" && !this.node.props.has_key("$ " + p)) {
+                       if (iter.get_value().type == "utf8" && !is_raw) {
                                 v = "\"" +  v.escape("") + "\"";
                        }
                        if (v == "TRUE" || v == "FALSE") {