Package ratpack.handlebars.internal

Examples of ratpack.handlebars.internal.FileSystemBindingTemplateLoader


  TemplateLoader provideTemplateLoader(LaunchConfig launchConfig) {
    String path = templatesPath == null ? launchConfig.getOther("handlebars.templatesPath", "handlebars") : templatesPath;
    String suffix = templatesSuffix == null ? launchConfig.getOther("handlebars.templatesSuffix", ".hbs") : templatesSuffix;

    FileSystemBinding templatesBinding = launchConfig.getBaseDir().binding(path);
    return new FileSystemBindingTemplateLoader(templatesBinding, suffix);
  }
View Full Code Here

TOP

Related Classes of ratpack.handlebars.internal.FileSystemBindingTemplateLoader

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.