V2 #13

Closed
wants to merge 2 commits into
from

Conversation

Projects
None yet
2 participants

eschnou commented Dec 20, 2010

First of all.. thanks for doing this ! Awesome to be able to use mustache in node.

This is a small fix for this example which does not work, while it should.

Template:
{{#name}}
{{name}}
{{/name}}

Hash:
{
name: "johndoe"
}

Output:
johndoe (but nothing if name is not defined)

Owner

raycmorgan commented Dec 21, 2010

Thanks for pointing this out! I changed the code to work with all truthy (strings, numbers, booleans, etc) values.

Here is the commit: 0a42fdb

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment