Added simple template engine integration