I have some mvc3 code that I'm taking ownership and there are views that both apply html helpers and html javascript injection within views.
Personally, I prefer raw html or helpers as opposed to html injection. What are the pro's and cons of each?
Basic html and helpers:
<div id="efI" class="ef">
@Html.PasswordFor(m => m.Password)
@Html.ValidationMessageFor(m => m.Password)
</div>
<div>
@Html.ActionLink("Click here.", "SomeAction")
</div>
Injection::
@Html.EditorForModel() //this generates controls from above...
<script type="text/javascript">
$('#efI').append('<div>@Html.ActionLink("Click here.", "SomeAction")</div>');
</script>