add markdown template handler
Merge pull request #235 from xiongbo/master

finished 379