Add support for content on same line as block start/end

This is particularly useful when using a templating language that does not prettify whitespace.

Fixes #265