Package ratpack.handlebars.internal

Examples of ratpack.handlebars.internal.RatpackTemplateCache


  @SuppressWarnings("UnusedDeclaration")
  @Provides
  TemplateCache provideTemplateCache(LaunchConfig launchConfig) {
    boolean reloadable = this.reloadable == null ? launchConfig.isDevelopment() : this.reloadable;
    int cacheSize = this.cacheSize == null ? Integer.parseInt(launchConfig.getOther("handlebars.cacheSize", "100")) : this.cacheSize;
    return new RatpackTemplateCache(reloadable, CacheBuilder.newBuilder().maximumSize(cacheSize).<TemplateKey, com.github.jknack.handlebars.Template>build());
  }
View Full Code Here

TOP

Related Classes of ratpack.handlebars.internal.RatpackTemplateCache

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.