Вопрос прост, как указано в названии: существует ли способ использования помощников бритвы вне "App_Code"?
Пример (файл HtmlEx.cshtml):
@helper Script(string fileName, UrlHelper url)
{
<script src="@url.Content("~/Scripts/" + fileName)" type="text/javascript"></script>
}
Я спрашиваю об этом, потому что у меня нет ничего другого, чтобы добавить App_Code; Я хочу структурировать свой проект несколько иначе.
Спасибо.
ОБНОВЛЕНИЕ: Я не хочу никаких других типов расширений. Меня интересуют только чистые бритвенные помощники, о которых говорит Скотт: http://weblogs.asp.net/scottgu/archive/2011/05/12/asp-net-mvc-3-and-the-helper-syntax-within-razor.aspx