The 'attr' helper no longer inserts a leading '@'.
[mkws-moved-to-github.git] / tools / htdocs / mkws.js
index 769c574..3671499 100644 (file)
@@ -118,9 +118,9 @@ Handlebars.registerHelper('json', function(obj) {
 });
 
 
-// We need {{attr name}} because Handlebars can't parse {{@@name}}
+// We need {{attr '@name'}} because Handlebars can't parse {{@name}}
 Handlebars.registerHelper('attr', function(attrName) {
-    return this['@' + attrName];
+    return this[attrName];
 });