We need a way of reading the matched state from a view aswell. I am thinking something like below that will just tell you what extension it should be looking for.
var state = ViewEnginePlus.State;
// state = "debug"
// state = "it"
// state = "dkk"
// state = "fr"
// state = "ie"
This way we can have an option where we just have the normal Index.cshtml but handle changes purely within the view.
var state = ViewEnginePlus.State;
if (state == "fr")
{
<h1>Bonjour</h1>
} else {
<h1>Hello</h1>
}
We need a way of reading the matched state from a view aswell. I am thinking something like below that will just tell you what extension it should be looking for.
This way we can have an option where we just have the normal Index.cshtml but handle changes purely within the view.