Package com.hubspot.jinjava.lib.filter
Class TitleFilter
- java.lang.Object
-
- com.hubspot.jinjava.lib.filter.TitleFilter
-
- All Implemented Interfaces:
Filter
,Importable
public class TitleFilter extends Object implements Filter
Return a titlecased version of the value. I.e. words will start with uppercase letters, all remaining characters are lowercase.- Author:
- jstehler
-
-
Constructor Summary
Constructors Constructor Description TitleFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
filter(Object var, JinjavaInterpreter interpreter, String... args)
Filter the specified template variable within the context of a render process.String
getName()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.hubspot.jinjava.lib.filter.Filter
filter, filter, preserveSafeString
-
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceImportable
-
filter
public Object filter(Object var, JinjavaInterpreter interpreter, String... args)
Description copied from interface:Filter
Filter the specified template variable within the context of a render process. {{ myvar|myfiltername(arg1,arg2) }}
-
-