If this is the case that you already have several pages that have been implemented using some kind of template system and want to use them without any changes, you should look at Twig or CMS with Twig support. (offspring of the Symphony project )
Twig allows you to write your own Lexer and Parser, you already have your own template syntax.
, Smarty Mustache , .