implemented simple tmpl engine
Merge pull request #15 from bcho/develop

implemented simple tmpl engine, close #7