My razor web is big and padded with a lot of text that I would like to move into an external file. Right now it looks like this:
@if (Model.RowKey == "ABC") {
<div class="mdl">
50+ lines of textual information. Not code.
</div>
}
@if (Model.RowKey == "DEF") {
<div class="mdl">
50+ lines of different textual information. Not code.
</div>
}
Is there a way that I can store this text externally so I don't use too much space in my view? Also IF I store externally is there an overhead when the view is created? Will it have to recompile the view each time? This is very important as I want things to run quick.