Yes this helps, thank you. It looks like Dust templates restrict fields
which are valid according to json specification, but that's another story.
Thanks,
M
On Friday, June 13, 2014 3:01:37 PM UTC-7, // ravi wrote:
>
> On Jun 13, 2014, at 4:48 PM, MC 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/4fe3e0b7-2270-4483-87ad-357a6737c48f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.