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();
	}
}

@@ -29,37 +29,8 @@
 %0D%0A%0D%0A
-import java.util.ArrayList;%0D%0A
 impo

Remove unused package