Changed template parser algorithm
Modify compile logics
Changed template parse logic
Removed unused files and add test
Update document
Merge branch 'master' into gh-pages