iron-meteor / iron-layout

Dynamic layout with support for rendering dynamic templates into regions.
MIT License
46 stars 11 forks source link

yield regions do not work if no main region is yielded #14

Open paulbalomiri opened 9 years ago

paulbalomiri commented 9 years ago

I woked out this simple case for showcasing the problem

template(name='dynamic_template')
    h4 region1
    +yield 'region1'
    h4 main
    // without the main yield  no region is rendered at all
    +yield

    h4 region2
    +yield 'region2'
template(name='dynamic_template_caller')
    +Layout template='dynamic_template' data=something
        |main
        +contentFor 'region1'
            |content of region 1
        +contentFor 'region2'}}
            |content of region 2

Should dynamic templates with only named regions (=without a main region) be supported ?

EDIT : rephrasing made clear in which case hasregion is not supported

paulbalomiri commented 9 years ago

Bump: Could you acknowledge this, or tell me if the report is unclear/mistaken

paulbalomiri commented 9 years ago

does someone still maintain this package ?