Added support for rendering conditional blocks.  Added support for switch.