Add example showing how to convert a view variable to a block.

Refs cakephp/cakephp#4973