For now, we are rendering block through the Twig function. I think that making it with a custom controller would be more flexible as it can have an optional template parameter. Sometimes the default CMS Block templates are not enough. What I would like to achieve is I want it to be rendered like this: {{ render(path('bitbag_cms_render_block', {'code' : 'homepage_slide_1', 'template' : '@App/Cms/homepageSlide.html.twig'})) }} instead of {{ bitbag_render_block('homepage_slide_1') }}. Maybe it would be also a nice idea to allow an optional parameter to the bitbag_render_block function for a template.
For now, we are rendering block through the Twig function. I think that making it with a custom controller would be more flexible as it can have an optional template parameter. Sometimes the default CMS Block templates are not enough. What I would like to achieve is I want it to be rendered like this:
{{ render(path('bitbag_cms_render_block', {'code' : 'homepage_slide_1', 'template' : '@App/Cms/homepageSlide.html.twig'})) }}instead of{{ bitbag_render_block('homepage_slide_1') }}. Maybe it would be also a nice idea to allow an optional parameter to thebitbag_render_blockfunction for a template.