Implemented base template engine, variable assignment, output buffer control with unit tests