refact mustache template engine into jade. for inheritance convenience