Package com.google.clearsilver.jsilver.resourceloader

Examples of com.google.clearsilver.jsilver.resourceloader.ClassResourceLoader


public class Iterate {

  public static void main(String[] args) throws IOException {

    // Load resources (e.g. templates) from classpath, along side this class.
    JSilver jSilver = new JSilver(new ClassResourceLoader(Iterate.class));

    // Set up some data.
    Data data = jSilver.createData();
    data.setValue("query", "Fruit");
    data.setValue("results.0.title", "Banana");
View Full Code Here


public class HelloWorld {

  public static void main(String[] args) throws IOException {

    // Load resources (e.g. templates) from classpath, along side this class.
    JSilver jSilver = new JSilver(new ClassResourceLoader(HelloWorld.class));

    // Set up some data.
    Data data = jSilver.createData();
    data.setValue("name.first", "Mr");
    data.setValue("name.last", "Man");
View Full Code Here

TOP

Related Classes of com.google.clearsilver.jsilver.resourceloader.ClassResourceLoader

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.