In your index.vash file, make sure the path to the layout.vash file is correct.
For example, if the views folder structure is views/home/layout.vash and views/home/index.vash, then:
@html.extend('layout', function(model){
should be:
@html.extend('home/layout', function(model){
hope it helps.