On Jun 13, 2014, at 4:48 PM, MC <[email protected]> wrote:
> Hello,
> I have a json object which contains fields with whitespace in their names 
> (e.g. { "My Name" : "Bob" } ).
> I'm trying to render those using dust templates, like this:
> <span>{'My Name'}</span>
> However this does not render the field (whatever is enclosed in single quotes 
> gets rendered).
> I tried other approaches:
> <span>{My Name}</span>
> <span>{"My Name"}</span>
> But those didn't work either.


I don't know a thing about Dust, but does this help?

http://stackoverflow.com/questions/20215036/dust-js-tags-for-keys-containing-spaces

        --ravi


-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/02C9F3D9-55D1-4EA8-BA7D-FE44492A46BA%40g8o.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to