Added support for block-based subviews.
Merge pull request #2 from pachun/master

Added support for block-based subviews.