(#9) convert attrib and templates

This PR requires merge of the previous PR