the views output type handling methods now use code templates located in templates/code/views to make the function definitions adaptable by the user

refs #1019