reload template at runtime

26 views
Skip to first unread message

giuseppe

unread,
Oct 25, 2016, 6:13:00 AM10/25/16
to handlebars.java
i want upgrade version of hadlebar from 2.0.0 to last version
my code
try {
loader = new FileTemplateLoader(new URI(templatePath).getPath());
} catch (URISyntaxException e) {
loader = new FileTemplateLoader(templatePath);
}

handlebars = new Handlebars().with(loader).with(new HighConcurrencyTemplateCache().setReload(true));

Helpers.register(handlebars);
StringHelpers.register(handlebars);

but not reload template at runtime if a make a change in hbs file..

Reply all
Reply to author
Forward
0 new messages