support dev mode for template