Re-arranged a bit; a added support for converting the len() function to a jinja filter; added support for single line blocks