add pretty option for template rendering