add conditionals to templates for compass. Fixes #98