-
Notifications
You must be signed in to change notification settings - Fork 101
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
[Thymeleaf] Support for "Link URLs" #43
Comments
This might be less difficiult after upgrading to Thymeleaf 3, since the Thymeleaf 3 ten-minute migration guide states that Thymeleaf 3 is capable of running
Although Spark does use the Servlet API under the hood, it might be easier to use the aforementioned features with Thymeleaf 3 than it currently is with Thymeleaf 2. |
I have a working prototype for this, but it requires perwendel/spark#658 to be merged. |
@perwendel It would be awesome to use the |
Note to future self... The prototype involves extending Thymeleaf's |
Thymeleaf has some nice features when it comes to rendering (hyper)links. It would be cool if we could use these from Spark applications as well.
But to use these features, one needs to supply an
IWebContext
instance to the ThymeleafTemplateEngine
. Building one requires access to theHttpServletRequest
,HttpServletResponse
,ServletContext
, and optionallyLocale
. As far as I can see, none of these are available insideTemplateEngine#render
. Am I missing the point how to get hold of them?The text was updated successfully, but these errors were encountered: