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
Add optional way to strip whitespace from templates #2511
Comments
Could this just be the default? You can't look inside a template in the On Wed, Sep 30, 2015, 4:37 PM Steve Orvell notifications@github.com wrote:
|
whitespace sometimes can be really important in templates, I wonder if automatically stripping by default might break what people expect and be quite difficult to debug. |
is DOM based, where whitespace doesn't matter. On Wed, Sep 30, 2015, 4:48 PM Sam Saccone notifications@github.com wrote:
|
oh perhaps I am not correctly understanding what
means then 😉 |
@samccone it's a blink bug where style recalc takes a large amont of time on textnodes: |
This is fixed from Steve's commit. |
The addition of this feature caused a weird bug for me when using |
It's typically a very minor performance improvement if whitespace is stripped from templates, but it's cumbersome to write html this way. We could expose a
strip-whitespace
option to templates that would be processed at registration time and would strip all whitespace from templates.The text was updated successfully, but these errors were encountered: