Class TruncateBuiltinAlgorithm

java.lang.Object
freemarker.core.TruncateBuiltinAlgorithm
Direct Known Subclasses:
DefaultTruncateBuiltinAlgorithm

public abstract class TruncateBuiltinAlgorithm extends Object
Used for implementing the "truncate" family of built-ins. There are several variations of the "truncate" built-ins, each has a corresponding method here. See truncateM(String, int, TemplateModel, Integer, Environment) as the starting point.

New methods may be added in later versions, whoever they won't be abstract for backward compatibility.

Since:
2.3.29
See Also:
Configurable.setTruncateBuiltinAlgorithm(TruncateBuiltinAlgorithm)