Allow #layout with pattern instead of identifier