I have an mvc app that works mostly client side with knockoutjs. I have the need of configuring it for different type of installations so I will have custom parameters for some colors for example. Now I put everything in a js file on the client, but because this is something that does not change while the app is running I was thinking to put this on the server side and modify my view depending on those custom params so the page will just be rendered server side with the right colors.
What is the best way of doing this with MVC? all the answers I found use: ConfigurationManager.GetSection
to read from the web.config file but it's not very clear if it works in mvc and if after that I need to put the values in a model and attach it to the view.
something like this is suggested all the time: var somevar = "@item"
but what is item
in an view?