added a bit of spacing, a little bit nicer error catching, and demo
of use with jinja2 logic.  I'm a little surprised how well that works,
without any jinja-specific hacks, actually.