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

Template calls in <script> blocks are not allowed #437

Open
sysmat opened this issue Mar 15, 2025 · 4 comments
Open

Template calls in <script> blocks are not allowed #437

sysmat opened this issue Mar 15, 2025 · 4 comments

Comments

@sysmat
Copy link

sysmat commented Mar 15, 2025

  • jte: 3.1.16
  • mvn: <contentType>Html</contentType>
  • mvn build error
Template calls in <script> blocks are not allowed.
  • This is to much opinionated, you must allow developers to decide
@kelunik
Copy link
Collaborator

kelunik commented Mar 23, 2025

What's your use case?

@sysmat
Copy link
Author

sysmat commented Mar 23, 2025

From java I set some local storage, some javascript values,...

@kelunik
Copy link
Collaborator

kelunik commented Mar 25, 2025

Why do you put the Javascript into a different template? How does your code look like?

@sysmat
Copy link
Author

sysmat commented Mar 25, 2025

because backend generate some staff for the user, I can't put code here on github

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

No branches or pull requests

2 participants