MVC-style framework for building WordPress themes and plugins
PHP HTML CoffeeScript Shell
Switch branches/tags
Nothing to show
Permalink
Failed to load latest commit information.
coffee removed mtv.store.coffee; updated Backbone.sync method to work with n… Nov 15, 2011
devjs removed mtv.store.coffee; updated Backbone.sync method to work with n… Nov 15, 2011
locale close #571 -- more modal window translations Feb 2, 2012
tests Autoload via composer. Sep 17, 2016
underscore @ 21b5f1b adding Underscore.php Nov 23, 2011
wp Replace excerpt_more filter reference with read_more filter. Sep 23, 2016
.gitignore make stuff internationalizationable Dec 8, 2011
.gitmodules adding Underscore.php Nov 23, 2011
LICENSE added MIT license Oct 17, 2011
README.rst add link to the wiki from readme Oct 19, 2011
build_js.sh refactored to use be used as a git submodule Nov 4, 2011
http.php
models.php add cache groups attribute to models; invalidate Post model cache gro… Nov 27, 2012
mtv.min.js recompile js Jul 26, 2012
mtv.php Autoload via composer. Sep 17, 2016
requirements.sh
run_watchers.sh
shortcuts.php throw exceptions if twig isn't setup Mar 29, 2012
utils.php refactored to use be used as a git submodule Nov 4, 2011
wp-plugin.php remove debugging statement Feb 11, 2014

README.rst

Models, templates and views for WordPress

MTV is a plugin for WordPress that provides a new API for developing plugins and themes. Born out of frustration with the undocumented, inconsistent WordPress API, MTV provides a simple, familiar, consistent way to develop heavily customized WordPress sites.

MTV borrows a lot from existing MVC-style frameworks, namely Django and Backbone.js. If you're familiar with those frameworks, you should feel at home using MTV. If you're not familiar, go try some tutorials. It'll make you a better programmer.

This plugin hijacks and takes over how WordPress handles URLs and templates, and gives you new ORM-style tools for handling posts, users and blogs. This plugin does nothing by itself, and (hopefully) will not break stuff that you already have. It's just a set of tools for developers to use.

Get started by reading the wiki.