Parse build blocks in HTML files to replace references