dynamic file extension support added. fallback logic for template rendering added. custom json support added.