aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java/com/mitchellbosecke/pebble/extension/FormatterExtension.java
blob: 220e0460cdb9f6dea24932d4e4112fabe511145e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.mitchellbosecke.pebble.extension;

import com.mitchellbosecke.pebble.extension.filters.FormatMessageFilter;
import com.mitchellbosecke.pebble.extension.filters.PrettyTimeFilter;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by vitalyster on 04.05.2017.
 */
public class FormatterExtension extends AbstractExtension {
    @Override
    public Map<String, Filter> getFilters() {
        Map<String, Filter> filters = new HashMap<>();
        filters.put("formatMessage", new FormatMessageFilter());
        filters.put("prettyTime", new PrettyTimeFilter());
        return filters;
    }
}