public class Hbs extends Object implements com.github.jknack.handlebars.HelperRegistry, Jooby.Module
| Constructor and Description |
|---|
Hbs() |
Hbs(com.github.jknack.handlebars.Handlebars handlebars) |
| Modifier and Type | Method and Description |
|---|---|
com.typesafe.config.Config |
config() |
void |
configure(Env mode,
com.typesafe.config.Config config,
com.google.inject.Binder binder) |
<C> com.github.jknack.handlebars.Helper<C> |
helper(String name) |
Set<Map.Entry<String,com.github.jknack.handlebars.Helper<?>>> |
helpers() |
<H> Hbs |
registerHelper(String name,
com.github.jknack.handlebars.Helper<H> helper) |
<H> com.github.jknack.handlebars.HelperRegistry |
registerHelperMissing(com.github.jknack.handlebars.Helper<H> helper) |
com.github.jknack.handlebars.HelperRegistry |
registerHelpers(Class<?> helperSource) |
com.github.jknack.handlebars.HelperRegistry |
registerHelpers(File input) |
com.github.jknack.handlebars.HelperRegistry |
registerHelpers(Object helperSource) |
com.github.jknack.handlebars.HelperRegistry |
registerHelpers(String filename,
InputStream source) |
com.github.jknack.handlebars.HelperRegistry |
registerHelpers(String filename,
Reader source) |
com.github.jknack.handlebars.HelperRegistry |
registerHelpers(String filename,
String source) |
com.github.jknack.handlebars.HelperRegistry |
registerHelpers(URI location) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstart, stoppublic Hbs(com.github.jknack.handlebars.Handlebars handlebars)
public Hbs()
public void configure(Env mode, com.typesafe.config.Config config, com.google.inject.Binder binder) throws Exception
configure in interface Jooby.ModuleExceptionpublic com.typesafe.config.Config config()
config in interface Jooby.Modulepublic <C> com.github.jknack.handlebars.Helper<C> helper(String name)
helper in interface com.github.jknack.handlebars.HelperRegistrypublic Set<Map.Entry<String,com.github.jknack.handlebars.Helper<?>>> helpers()
helpers in interface com.github.jknack.handlebars.HelperRegistrypublic <H> Hbs registerHelper(String name, com.github.jknack.handlebars.Helper<H> helper)
registerHelper in interface com.github.jknack.handlebars.HelperRegistrypublic <H> com.github.jknack.handlebars.HelperRegistry registerHelperMissing(com.github.jknack.handlebars.Helper<H> helper)
registerHelperMissing in interface com.github.jknack.handlebars.HelperRegistrypublic com.github.jknack.handlebars.HelperRegistry registerHelpers(Object helperSource)
registerHelpers in interface com.github.jknack.handlebars.HelperRegistrypublic com.github.jknack.handlebars.HelperRegistry registerHelpers(Class<?> helperSource)
registerHelpers in interface com.github.jknack.handlebars.HelperRegistrypublic com.github.jknack.handlebars.HelperRegistry registerHelpers(URI location) throws Exception
registerHelpers in interface com.github.jknack.handlebars.HelperRegistryExceptionpublic com.github.jknack.handlebars.HelperRegistry registerHelpers(File input) throws Exception
registerHelpers in interface com.github.jknack.handlebars.HelperRegistryExceptionpublic com.github.jknack.handlebars.HelperRegistry registerHelpers(String filename, Reader source) throws Exception
registerHelpers in interface com.github.jknack.handlebars.HelperRegistryExceptionpublic com.github.jknack.handlebars.HelperRegistry registerHelpers(String filename, InputStream source) throws Exception
registerHelpers in interface com.github.jknack.handlebars.HelperRegistryExceptionCopyright © 2014. All rights reserved.