Added support for embed a block from a template

Fixes: #1171