bugfix: can't render if $layout not exists
move sample code
version 0.02

- bugfix: can't render if $layout not exists