Implemented a simple template engine.