In package com.mitchellbosecke.pebble.extension.escaper
public class EscaperExtension extends AbstractExtension
Constructors
Methods
public void setDefaultStrategy(String strategy)
Sets the default escaping strategy.
Parameters:
-
String strategy
Escaping strategy
public void setAutoEscaping(boolean auto)
Parameters:
-
boolean auto
public void addEscapingStrategy(String name, EscapingStrategy strategy)
Adds a custom escaping strategy to the filter.
Parameters:
-
String name
Name of the escaping strategy
-
EscapingStrategy strategy
The implementation of the escaping strategy