flatten if blocks in template