Allow default contents and attributes for blocks in templates

Implement a solution which will allow a default content for a block (might require an opening and closing "tag") and a possibility to add simple attribute (boolean flags might suffice).