Added body of parse() for html file generation and tag Template
replacement