template source formatting