src/JsRender/NodeToVala.vala
authorAlan Knowles <alan@roojs.com>
Thu, 7 May 2015 08:02:45 +0000 (16:02 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 7 May 2015 08:02:45 +0000 (16:02 +0800)
src/JsRender/NodeToVala.vala

index 45c1d11..435d215 100644 (file)
@@ -526,7 +526,7 @@ public class JsRender.NodeToVala : Object {
                        var is_raw = nodekey[0] == '$';
                        
                        // what's the type.. - if it's a string.. then we quote it..
-                       if (iter.get_value().type == "utf8" && !is_raw) {
+                       if (iter.get_value().type == "string" && !is_raw) {
                                 v = "\"" +  v.escape("") + "\"";
                        }
                        if (v == "TRUE" || v == "FALSE") {