radiasoft / sirepo

Sirepo is a framework for scientific cloud computing. Try it out!
https://sirepo.com
Apache License 2.0
63 stars 31 forks source link

template_common.flatten_data should clean values #1336

Open robnagler opened 6 years ago

robnagler commented 6 years ago

Since we use jinja to print the values, we should probably clean values of such as double and single quotes and control characters (e.g. newlines). This will help avoid syntax issues at minimum.

robnagler commented 2 years ago

I think we need to eliminate the underscore flattening so names are easier to find. I also think we should have data types for all values in the templates.