kadirahq/blaze-layout

Render FlowComponents into layout

gibson opened this issue · 5 comments

When i use

FlowLayout.render 'main_layout',
        content: 'settings'

and i have a component settings -> rendering only Blaze.Template and not starting component

I'm quite not sure what you are raising?
Could you work on a sample repo with isolated example.
So, we can fix it quickly.

gibson/flowtest@8dd7d12d3fcd34bd88e2d07467e2f68bf1b8f1fc

add test example

Just curious, have you tried:

{{> render component=content}}

instead of

{{> Template.dynamic template=content}}

Template.dynamic is Blaze's provision for dynamically selecting a template. render is Component's provision for rendering a component.

I think @lassombra answer is correct.

I threw together a quick and dirty proof of this working: http://meteorpad.com/pad/33RKCXvTrqqWME2HH/Flow-Component-In-Layout

You'll see there the Template.dynamic replaced with render.