conditionals can now be applied in template