twitter/hogan.js — Issue #40: Wrong example code in readme
Author: wpbasti
Created: 2012-02-06 16:59:13+00:00
State: open

This does not work:

```
var text = "{{^check}}{{i18n}}No{{/i18n}}{{/check}}";
text += "{{#check}}{{i18n}}Yes{{/i18n}}{{/check}}";
var tree = Hogan.parse(Hogan.scan(text));

// outputs "# check"
console.log(tree[0].tag + " " + tree[0].name);

// outputs "Yes"
console.log(tree[1].nodes[0].nodes[0]);
```

i18n must be a section as it seems and "name" attribute was renamed to "n". Somehow.