implement rendering page by template plugin, tested on github.gist