I’ve tried to use your code as a point of reference for something that I might be overcomplicating. I was wondering if I could get some feedback. The code is currently published at kennethkalmer/ratchet-ember.
I’ve been running around in circles, and just cannot get my block behavior to work. I keep ending up with the following exception:
You can't use appendChild outside of the rendering process. Not a lot of results on Google either, which is why I’m bringing this up here to help future devs too…
My idea is to have different types of block helpers that map to the different types of bars that Ratchet provides, the first example looks something like this:
<a href="#/" class="btn btn-link btn-nav pull-left">
<span class="icon icon-left-nav"></span>
<h1 class="title">Custom title bar</h1>
The helper stashes the view in a
header controller, which feeds it back to another view.
I’m using an implicit controller at the moment, but it would probably be converted to an explicit controller once I get more behaviors tied in…
Any help would be greatly appreciated.