How to include style tag in layout from child

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to include style tag in layout from child

mdodge
I am assuming and hoping it is possible to send along the < style > tag from the child to the main layout in Thymeleaf. I haven't been able to figure it out though.

Here is the top of my Layout:
`<!DOCTYPE html>
<html data-th-fragment="layout(title, content, header, style)" lang="en">`

And here is the top of my child view:
`<!DOCTYPE html>
<html lang="en" data-th-replace="~{kiosk/layout.html :: layout(~{::title//text()}, ~{::section}, ~{::header//text()}, ~{::style//text()})}">`

I have empty style tags in my layout: < style > < /style >. And filled in style tags with css in my child.