try using page include before and after the content part.although template in SRDEmo is not imported programmically it is just a copy and paste.