Skip to content

Conversation

@botverse
Copy link

This is useful to be able to pass flattened objects to the template.

So you can do:

var user = { user: { name: 'Mark' }};
var flatUser = flatten(user); // => { "user.name": "Mark" }
var string = format('Hello {user.name}', flatUser);

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling ee25752 on botverse:master into f63e51a on Matt-Esch:master.

@lslalbai
Copy link

Probably should also add "." to string-template/compile.js

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants