Better import control for template tag