Haskell implementation of a subset of the PHP-Smarty template language