Abstract out the Html templates for Metadata without impacting
performance.
Merge pull request #779 from prasannavl/master

Abstract out the Html templates for Metadata without impacting on performance.