V0.0.1

Todo:

- [ ] Add unit tests
- [x] Add ui
- [ ] Add collection view
- [x] onAttach event
- [ ] ~~perf tests against Marionette~~ not for v0.0.1
- [ ] ~~Add base router~~ not for v0.0.1
- [ ] ~~Add state router~~ not for v0.0.1
- [ ] ~~Add Puppets.Computed (?)~~ not for v0.0.1
Lol, I was reading SRC but just did q Ctrl+f to find the line. I'll leave
piecing together the puzzle as an exercise
On Dec 22, 2014 5:16 PM, "James Smith" <notifications@github.com> wrote:

> In build/puppets.js
> <https://github.com/jmeas/puppets/pull/1#discussion-diff-22193967>:
>
> > +    // Retrieve the `view` contained in `selector`
> > +    getChildView: function(selector) {
> > +      return this._getRegion(selector).currentView();
> > +    },
> > +
> > +    // Prepares our model *or* collection for displaying
> > +    // in a template
> > +    _serializeData: function() {
> > +      if (!this.model && !this.collection) { return; }
> > +      return this.model ? this._serializeModel() : { models: this._serializeCollection() };
> > +    },
> > +
> > +    // Prepare a model for display in a template
> > +    _serializeModel: function(model) {
> > +      model = model || this.model;
> > +      return _.clone(this.model.attributes);
>
> The change away from toJSON, you mean? toJSON should not be used for
> preparing data for a view's template. Ref
> <https://github.com/marionettejs/backbone.marionette/issues/1476>
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jmeas/puppets/pull/1/files#r22193967>.
>