protected static String parameterize ( String config , ConfigParams parameters ) throws IOException { if ( parameters == null ) { return config ; } Handlebars handlebars = new Handlebars ( ) ; Template template = handlebars . compileInline ( config ) ; return template . apply ( parameters ) ; }
Parameterized configuration template given as string with dynamic parameters .