Render FlowComponents into layout
gibson opened this issue · 5 comments
gibson commented
When i use
FlowLayout.render 'main_layout',
content: 'settings'
and i have a component settings
-> rendering only Blaze.Template and not starting component
arunoda commented
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 commented
gibson/flowtest@8dd7d12d3fcd34bd88e2d07467e2f68bf1b8f1fc
add test example
lassombra commented
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.
arunoda commented
I think @lassombra answer is correct.
lassombra commented
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.