Assiya,
Could you please clarify what you mean by "template HTML?"
GWT has facilities for templated HTML:
- UiBinder for templates for Widgets (i.e. like a toolbar) and entire screens (i.e. like page layouts for a blog)
- @Template annotation based SafeHtmlTemplates for quickly generating sanitized dynamic raw HTML output.
UiBinder is the most commonly used case in GWT for making page layouts. The @Templates are used for components requiring lost of HTML markup like the rows/columns of datagrids.
Using a UiBinder you could easily create a "template" of the standard page for say a forum (i.e. like this GWT Google Groups page) and then dynamically insert the content (comments), titles, page header...etc into your template. That is how this forum page works, just swapping the dynamic content into an otherwise static page template.
I hope that helps.
Sincerely,
Joseph