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

"super-graph new" HTML escapes generated configuration files #95

Closed
wttw opened this issue Jul 1, 2020 · 1 comment
Closed

"super-graph new" HTML escapes generated configuration files #95

wttw opened this issue Jul 1, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@wttw
Copy link
Contributor

wttw commented Jul 1, 2020

What version of Super Graph are you using? super-graph version

"unknown-version"

git describe says v0.11-210-gcd7f26b

Steps to reproduce the issue (config used to run Super Graph).

super-graph new app

Expected behaviour and actual result.

config/seed.js and config/migrations/o_init.sql are generated HTML escaped

e.g.

expected:

for (i = 0; i < 10; i++) {

actual:

for (i = 0; i &lt; 10; i++) {

It looks like internal/serv/cmd_new.go should be importing text/template instead of html/template

https://github.com/dosco/super-graph/blob/master/internal/serv/cmd_new.go#L5

@dosco
Copy link
Owner

dosco commented Jul 3, 2020

Fix in 5f4f2e0

@dosco dosco closed this as completed Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants