Should MVVM ViewModel inject an HTML template for default view?
- by explunit
I'm working on web application design that includes Knockout.js and have an overall MVVM question: Does it make sense for the ViewModel to automatically inject a default HTML template (pulled from separate file)?
More detail: suppose I have a site like this...
header...
widget 1
widget 2
widget 3
footer
...and widgets 1/2/3 are…