Conditional example code in templates