pyformat.info
pyformat.info copied to clipboard
Give an example of literal "{" and "}" usage
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.
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.