Then I would recommend some templating mechanism such as Template - you might also find useful information in: