Skip to content

Mvvm (model view viewmodel)

Mark Croxton edited this page Sep 21, 2013 · 3 revisions

MVVM is a pattern designed to separate out the presentation of your data (e.g. the html markup) from the business and model logic that retrieves and formats the data (the template tags, conditionals, data formatting and so on). This decoupling of concerns has many advantages, such as the ability to easily change the presentation layer, to re-use layout templates, and to cache the captured data in a structured form and format it after retrieval from the cache.

Resources

http://expressionengine.stackexchange.com/questions/1675/stash-embeds-trying-to-be-dry/1749#1749
https://gist.github.com/croxton/3973821
http://pixelfear.com/blog/stash-workflow

Clone this wiki locally