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

Soy template debug info is generated but turned off #12

Open
segabor opened this issue Mar 22, 2019 · 1 comment
Open

Soy template debug info is generated but turned off #12

segabor opened this issue Mar 22, 2019 · 1 comment
Labels

Comments

@segabor
Copy link
Owner

segabor commented Mar 22, 2019

Soy adds debug metadata to generated tags if debugSoyTemplateInfo is turned on.
Like:

{print 'Boo!'}<br>

is evaluated to

    output.append("Boo!<br")
    if false {
        output.append(" data-debug-soy=\"soy.examples.features.demoPrint ./examples/features.soy:96\"")
    }
    output.append(">")

Now this feature is turned off so source will be full of if false {..} lines.
Decide to eliminate debug feature entirely or keep it with better control.

@segabor
Copy link
Owner Author

segabor commented Mar 22, 2019

Technical hint: affected source com.google.template.soy.shared.internal.BuiltinFunction.DEBUG_SOY_TEMPLATE_INFO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant