Modularize some templates and views to support mixing components on
pages.