Using publish subscribe to have a text field get updated.
I am publishing events, like so:
topic='foolishness';
json={foo:'bar'};
$.publish(topic,json);
I want views to subscribe to topics and respond to them.
I could add the class 'foolishness' to each view that depends on 'foolishness',
and also execute:
$.subscribe(topic,function(json){ thisView.banner.html(json.foo); })
When I use Appery to construct views, what is the best way of implementing this subscribing?