Control statements in templates