Prismatic/om-tools — pull request #14 by loganlinn (2014-06-10 19:47:21+00:00)
Title: Mixins

This adds a new feature to empower React mixins for Om applications. Checkout the README changes for additional description.

Overview:

* Add `om-tools.mixin/defmixin` macro that looks and behaves similar to `defcomponent`/`defcomponentk`
* Add mechanism to specify mixins from `defcomponent`/`defcomponentk`

Some things I would like some feedback on:

* Should `defmixin` be part of `om-tools.core` or separate namespace?
* Is the `(:mixins my-mixin)` syntax within component macro clear? Any suggested alternatives?
* Is it clear how custom mixin methods are accessed from base component? (via (.) access)