I am trying to update this tutorial on implementing Facebooks BigPipe to razor.
There is a html helper extension that adds a pagelet to a list, and then outputs a holdin
You should use the ViewBag and put the string in there, then output it.
In controller:
ViewBag.Foo = Bar;
In view:
@ViewBag.Foo