We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
t-if=""
t-if="" generates code which is not valid javascript.
it generates code which looks like
""" if () { // ... } """
It crashes when owl tries to compile the code Error: Failed to compile template "Root": Unexpected token ')'
Error: Failed to compile template "Root": Unexpected token ')'
The error message isn't very helpful to debug/fix the xml template, especially if the template is quite large and the generated code is also big.
class Root extends Component { static components = {}; static template = "Root" }
<templates> <t t-name="Root"> <div t-if="">Hi!</div> </t> </templates>
👉 Playground
The text was updated successfully, but these errors were encountered:
yeah, seems like we could improve this...
Sorry, something went wrong.
No branches or pull requests
t-if=""
generates code which is not valid javascript.it generates code which looks like
It crashes when owl tries to compile the code
Error: Failed to compile template "Root": Unexpected token ')'
The error message isn't very helpful to debug/fix the xml template, especially if the template is quite large and the generated code is also big.
👉 Playground
The text was updated successfully, but these errors were encountered: