You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am looking for a way to get the actual URL from the freemarker template without using the Results.render(). I want it to be global.
I thought the Implicit functions ${contextPath} would do the trick but i got an empty result.
I also tried to use the TemplateEngineFreemarker and the setSharedVariable on each route request in Ninja.java but it gets overwritten if multiple requests run in parallels (not threadsafe or not for this type of usage).
And now I have no idea to do it.
Any help is appreciated.
Thanks !
The text was updated successfully, but these errors were encountered:
Hello,
I am looking for a way to get the actual URL from the freemarker template without using the Results.render(). I want it to be global.
I thought the Implicit functions ${contextPath} would do the trick but i got an empty result.
I also tried to use the TemplateEngineFreemarker and the setSharedVariable on each route request in Ninja.java but it gets overwritten if multiple requests run in parallels (not threadsafe or not for this type of usage).
And now I have no idea to do it.
Any help is appreciated.
Thanks !
The text was updated successfully, but these errors were encountered: