add directive parsers for blocks and template elements