Skip to content

Commit

Permalink
rename base64 filter
Browse files Browse the repository at this point in the history
  • Loading branch information
svergoti committed Feb 3, 2021
1 parent e5b2be8 commit 913c489
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/
public class Base64EncoderFilter implements Filter {

public static final String FILTER_NAME = "base64encode";
public static final String FILTER_NAME = "base64";

@Override
public List<String> getArgumentNames() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@ void testBase64EncoderFilterInTemplate() throws PebbleException, IOException {
PebbleEngine pebble = new PebbleEngine.Builder().loader(new StringLoader())
.strictVariables(false).build();

PebbleTemplate template = pebble.getTemplate("var=\"{{ var | base64encode }}\" const=\"{{ \"test\" | base64encode}}\" null=\"{{ null | base64encode }}\"");
PebbleTemplate template = pebble.getTemplate("var=\"{{ var | base64 }}\" const=\"{{ \"test\" | base64}}\" null=\"{{ null | base64 }}\"");

Map<String, Object> context = new HashMap<>();
context.put("var", "test");
Expand Down

0 comments on commit 913c489

Please sign in to comment.