Added initial implementation for blocks.

Blocks are dedicated functions on a template that will be called as
introduced in #32.