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

Give an example of literal "{" and "}" usage #35

Open
idgserpro opened this issue Oct 11, 2016 · 1 comment
Open

Give an example of literal "{" and "}" usage #35

idgserpro opened this issue Oct 11, 2016 · 1 comment
Labels
Milestone

Comments

@idgserpro
Copy link

We had some legacy code that we were converting, and a dynamic snippet of javascript generation was migrated from old style formatting that new .format uses.

Since it has javascript code with "{" and "}" literals

function test(){
}

that needs to be changed to

function test(){{
}}

We think it would be a nice addition to warn about this situation of literals in pyformat.info. We just don't know where is the best place to put it.

@ulope ulope added this to the 2.0 milestone Oct 12, 2016
@ulope
Copy link
Owner

ulope commented Oct 12, 2016

Thanks for the suggestion. That is definitely something worth mentioning.

We're currently working on a "Version 2" of the site and will include this in the new version.

@ulope ulope added the content label Nov 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants