begin templating for fanbutton directive