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

Retrieve url path from template #747

Open
danielsawan opened this issue May 8, 2022 · 0 comments
Open

Retrieve url path from template #747

danielsawan opened this issue May 8, 2022 · 0 comments

Comments

@danielsawan
Copy link
Contributor

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 !

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

1 participant