Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Executing a razor view dynamically

Is there a way to execute a razor view dynamically? If I have the view code as a string, can I execute it and pass it a model as a parameter for example?

like image 747
flush96 Avatar asked Feb 23 '11 05:02

flush96


1 Answers

This isn't exactly what you asked about, but has some interesting info on using dynamically generated templates: http://buildstarted.com/2010/09/29/razor-view-engine-without-mvc-at-all/

like image 73
John Weldon Avatar answered Sep 29 '22 06:09

John Weldon