add minitemplate src code and test case