Dirk make cards into template directives