Package ninja.template
Interface TemplateEngineManager
-
- All Known Implementing Classes:
TemplateEngineManagerImpl
public interface TemplateEngineManagerTemplate engine manager. Has a number of built in template engines, and allows registering custom template engines by registering explicit bindings of things that implement TemplateEngine.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<String>getContentTypes()Returns a set of the registered template engine content types.TemplateEnginegetTemplateEngineForContentType(String contentType)Find the template engine for the given content type
-
-
-
Method Detail
-
getContentTypes
Set<String> getContentTypes()
Returns a set of the registered template engine content types.- Returns:
- the registered content types
-
getTemplateEngineForContentType
TemplateEngine getTemplateEngineForContentType(String contentType)
Find the template engine for the given content type- Parameters:
contentType- The content type- Returns:
- The template engine, if found
-
-