Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support named arguments with spaces and special characters #14

Open
makenoteshere opened this issue Apr 12, 2016 · 3 comments
Open

Support named arguments with spaces and special characters #14

makenoteshere opened this issue Apr 12, 2016 · 3 comments

Comments

@makenoteshere
Copy link

Hi, davidchambers,
Can named arguments, object keys with spaces ('avg val') or special characters (#, _ etc) be supported?

var user = {name: "Dolly", age: 24, 'in co': 23, '#':1}
undefined
"{name} - {age}".format(user)
"Dolly - 24"
"{name} - {age} - {in co}".format(user)
"Dolly - 24 - {in co}"
"{name} - {age} - {#}".format(user)
"Dolly - 24 - {#}"
@davidchambers
Copy link
Owner

This is supported in the mini-language branch. One of these days I should merge #2!

@makenoteshere
Copy link
Author

Look forward to it. Thanks.

@rysson
Copy link

rysson commented Jul 11, 2018

Hi, Awesome work!

One of these days I should merge #2!

There ware quite long days, could you merge it?
Python format mini-language in JS – its incredible!

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

No branches or pull requests

3 participants