I wish to create a follow style button on a view in MVC but not sure whether I should be using a HTMLHelper to do this or not.
The button will obviously need to show different text depending upon whether or not the user is already following the item and call a different script when clicked if the user is deciding to follow or unfollow.
Should the helper create the button entirely or just the contents of the button?
MVC purists would argue that the decision on whether the user can follow the item should be made in the controller and passed in the Model. That boolean value would then be passed to the HTMLHelper.
Then on your view
And following standards, your JavaScript should be created separately. You could use
class="follow"on your follow button as a means for your JavaScript to identify which script should be used.