Closed lknop closed 7 years ago
Thanks for the PR @lknop. I've pushed back a slightly different approach:
templatename::[domselector]
for the moment. This is so unmatched fragment names don't inadvertently match other elements via DOM selectors. I'm open to adding support for the implicit templatename::domselector
syntax as a fallback if the fragment name doesn't match though.Apologies for the delay again in getting around to this!
I've raised #8 to cover the implicit DOM selector syntax.
This PR adds possibility of referencing fragments by id, class or tag name, as outlined here: http://www.thymeleaf.org/doc/articles/layouts.html#including-with-dom-selectors
Includes also fix for #5 .