Added plugins and a macro to switch syntax on template files