Skip to content

Instantly share code, notes, and snippets.

package memoizable
import java.util.HashMap
import java.util.List
import java.util.stream.Stream
import org.eclipse.xtend.lib.macro.Active
import org.eclipse.xtend.lib.macro.TransformationContext
import org.eclipse.xtend.lib.macro.TransformationParticipant
import org.eclipse.xtend.lib.macro.declaration.CompilationStrategy.CompilationContext
import org.eclipse.xtend.lib.macro.declaration.MutableMethodDeclaration
@juangamnik
juangamnik / MustacheExample.java
Last active July 3, 2016 15:07
Enhancing Mustache via an if-statement with EL
package info.mustacheexample;
import com.github.mustachejava.*;
import javax.el.*;
import java.beans.FeatureDescriptor;
import java.io.IOException;
import java.io.StringReader;
import java.io.StringWriter;
import java.util.HashMap;