Implemented templating engine.