gh-935

**not ready for merge**

Right now this takes care of generating the right output format - consuming it is another matter
I don't think we want the extend case to be different from the init case. Also, in the extend case, the inline partials should stay with component on which they were defined.