// Path: moshas/src/main/java/net/unit8/moshas/context/Context.java
// public class Context extends AbstractContext {
// 
//     public Context() {
//         super();
//     }
// 
//     public Context(Map<String, Object> variables) {
//         super();
//         for (Map.Entry<String, Object> entry : variables.entrySet()) {
//             setVariable(entry.getKey(), entry.getValue());
//         }
//     }
// }
// 
// Path: moshas/src/main/java/net/unit8/moshas/RenderUtils.java
// public class RenderUtils {
//     public static RenderFunction text(String... keys) {
//         return (el, ctx) -> el.text(ctx.getString(keys));
//     }
// 
//     public static RenderFunction attr(String attrName, String... keys) {
//         return (el, ctx) -> el.attr(attrName, ctx.getString(keys));
//     }
// 
//     public static RenderFunction doAll(RenderFunction... funcs) {
//         return (el, ctx) -> {
//             for (RenderFunction func : funcs) {
//                 func.render(el, ctx);
//             }
//         };
//     }
// }


import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Lists;
import net.unit8.moshas.context.Context;
import org.junit.Test;
import java.io.StringWriter;
import static net.unit8.moshas.RenderUtils.*;
package net.unit8.moshas;




/**
 *
 * @author kawasima
 */
public class TemplateTest {
    @Test
    public void test() {
        MoshasEngine engine = new MoshasEngine();
        Template index = engine.describe("META-INF/templates/index.html", t -> t.select("p#message", text("message")));
// Path: moshas/src/main/java/net/unit8/moshas/context/Context.java
// public class Context extends AbstractContext {
// 
//     public Context() {
//         super();
//     }
// 
//     public Context(Map<String, Object> variables) {
//         super();
//         for (Map.Entry<String, Object> entry : variables.entrySet()) {
//             setVariable(entry.getKey(), entry.getValue());
//         }
//     }
// }
// 
// Path: moshas/src/main/java/net/unit8/moshas/RenderUtils.java
// public class RenderUtils {
//     public static RenderFunction text(String... keys) {
//         return (el, ctx) -> el.text(ctx.getString(keys));
//     }
// 
//     public static RenderFunction attr(String attrName, String... keys) {
//         return (el, ctx) -> el.attr(attrName, ctx.getString(keys));
//     }
// 
//     public static RenderFunction doAll(RenderFunction... funcs) {
//         return (el, ctx) -> {
//             for (RenderFunction func : funcs) {
//                 func.render(el, ctx);
//             }
//         };
//     }
// }


// Path: moshas/src/test/java/net/unit8/moshas/TemplateTest.java
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Lists;
import net.unit8.moshas.context.Context;
import org.junit.Test;
import java.io.StringWriter;
import static net.unit8.moshas.RenderUtils.*;

package net.unit8.moshas;




/**
 *
 * @author kawasima
 */
public class TemplateTest {
    @Test
    public void test() {
        MoshasEngine engine = new MoshasEngine();
        Template index = engine.describe("META-INF/templates/index.html", t -> t.select("p#message", text("message")));
        Context context = new Context();