google / google/closure-templates

Question about soy reportWarnings

Open
#589 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
700
Forks
199
Avg merge
2d 12h
Merged PRs (30d)
26

Description

Hi,

We use soy templates in our server-side to render a simple `` template that is then used by our client-side lit code to hook up the full web-app.

We've recently upgraded and we now get the following warning:
```
Jan 26, 2022 8:43:30 PM com.google.template.soy.SoyFileSet reportWarnings
WARNING: warnings during Soy compilation
com/google/gerrit/httpd/raw/PolyGerritIndexHtml.soy:160: warning: Html id attributes should not be valid JavaScript identifiers, consider hyphenating the id.
160: {\n}
```

Given how our code is structured, I don't think this warning is relevant for us.

- What is the purpose behind this warning?
- Is there a way to turn it off?

Thank you

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.