From 1a4506195c40c4adf2bd1cc51e02b9b9730cf811 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sat, 26 Apr 2014 00:23:42 -0500 Subject: [PATCH] Revert "escaping curly braces in tags. see #51." This reverts commit 7bfd309e1a7ddbcfd048b1d79601165fe6553650. --- lib/widget.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/lib/widget.js b/lib/widget.js index 208fcb6..5b178aa 100644 --- a/lib/widget.js +++ b/lib/widget.js @@ -2033,22 +2033,6 @@ Element.prototype._parseTags = function(text) { slash = cap[1] === '/'; param = cap[2].replace(/-/g, ' '); - // if (!slash && param === 'curly') { - // out += '{'; - // continue; - // } else if ((slash && param === 'curly') || param === '!curly') { - // out += '}'; - // continue; - // } - - if (param === 'open') { - out += '{'; - continue; - } else if (param === 'close') { - out += '}'; - continue; - } - if (param.slice(-3) === ' bg') state = bg; else if (param.slice(-3) === ' fg') state = fg; else state = flag;