Simple DOM based XHTML template system in Erlang