Template system (similar to CTemplate) 
(VERY WIP)(