dancrew32 / marcel

The PHP 5.4 MVC with Shoes On: ActiveRecord, User/Session, Generators, SCSS, (Twitter Bootstrap) Integration, Workers, Cron Management, Image Manipulation, Caching, Git Management, Mail & Mail Parsing, OCR, Scraping, Selenium, Mustache, Markdown, Phone & Text Messaging, WebSockets, BitTorrent and much more!
5 stars 0 forks source link

asset loading for partial requests #70

Open dancrew32 opened 11 years ago

dancrew32 commented 11 years ago

maybe all view requests that dump json dump their variable output in json.variables.* so we can get assets to load dynamically under json.assets.*

then you would just have to create a generic getJSON method that dealt with assets and calls back with just the array of variables dumped by php's $this when you json($this);

APP.getView('/api', function(json) {});