package htmlflow;

import java.io.PrintStream;

public interface HtmlWriter<T>{
	/**
	 * Writes into an internal PrintStream the HTML content
	 * if this element.
	 * 
	 * @param depth The number of tabs indentation.
	 * @param model An optional object model that could be bind to this element. 
	 */
	void write(int depth, T model);
	
	/**
	 * Sets the current PrintStream.
	 * @param out
	 */
	HtmlWriter<T> setPrintStream(PrintStream out);
}

@@ -139,17 +139,273 @@
 ent%0A%09 * 
-i
+of this element with initial indentation of zero.%0A%09 *%0A%09 * @param model An optional object model that could be bind to this element.%0A%09 */%0A%09default void write(T model) %7B%0A%09%09write(0, model);%0A%09%7D%0A%09/**%0A%09 * Writes into an internal PrintStream the HTML content%0A%09 * o
 f this e

Add write(T model) method without indentation parameter