Add view example to the docs