private ThymeLeafTemplateImplementation getTemplateByURL ( URL url ) { Collection < ThymeLeafTemplateImplementation > list = registrations . keySet ( ) ; for ( ThymeLeafTemplateImplementation template : list ) { if ( template . getURL ( ) . sameFile ( url ) ) { return template ; } } return null ; }
Gets the template object using the given url as backend .