package com.ajlopez.templie;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class Template {
	private List<Step> steps;
	
	Template(List<Step> steps) {
		this.steps = steps;
	}

	public static Template compile(String text) throws CompileException {
		Compiler compiler = new Compiler(text);
		return compiler.compile();
	}
	
	public String run(Map<String, Object> model) {
		StringBuffer buffer = new StringBuffer();
		
		for (Step step: this.steps)
			buffer.append(step.run(model));
		
		return buffer.toString();
	}
}

package com.ajlopez.templie;

import java.util.List;
import java.util.Map;

public class Template {
	private List<Step> steps;
	
	Template(List<Step> steps) {
		this.steps = steps;
	}

	public static Template compile(String text) throws CompileException {
		Compiler compiler = new Compiler(text);
		return compiler.compile();
	}
	
	public String run(Map<String, Object> model) {
		StringBuffer buffer = new StringBuffer();
		
		for (Step step: this.steps)
			buffer.append(step.run(model));
		
		return buffer.toString();
	}
}

Remove unused package