add mustache template support

- header-template finished
- footer-template finished