Basically I need something like old asp.net
@helper MakeNote(string content) {
<p><strong>Note</strong> @content </p>
}
or JSX
MakeNote(note) {
return (<div>Note {note}</div>);
}
A partial view is not an option. I am happy with either a function returning an IHtmlString, or a function writing to the underlying writer.
It also needs to support Razor Syntax (not just string concatenation) inside the function.