Priority in templates