goja-core/src/main/java/goja/core/kits/StrTemplateKit.java
public static MacroResolver createMapMacroResolver(final Map map) {
        return new MacroResolver() {
            @Override
            public String resolve(String macroName) {
                Object value = map.get(macroName);

                if (value == null) {
                    return null;
                }

                return value.toString();
            }
        };
    }
public static MacroResolver createMapMacroResolver(final Map map) {
        return new MacroResolver() {
            @Override
            public String resolve(String macroName) {
                Object value = map.get(macroName);

                if (value == null) {
                    return null;
                }

                return value.toString();
            }
        };
    }
public static MacroResolver createMapMacroResolver ( final Map map ) { return new MacroResolver ( ) { @ Override public String resolve ( String macroName ) { Object value = map . get ( macroName ) ; if ( value == null ) { return null ; } return value . toString ( ) ; } } ; }
Creates commonly used {@link StrTemplateKit.MacroResolver} that resolved macros in the
provided map.
Creates commonly used {