How Express+pug does not use layout

returned the entire page (including < html >)

when using the AJAX request

I have tried everything that I feel I can search for

app.locals.layout=false
res.locals.layout=false
res.render({layout: false})

there are two other things that you can"t remember clearly view option

.

returns the whole page all the time
the file is layout.pug , index.pug , index inherits layout.pug

the question is how to avoid using layout on a single page in a Pug+express4 environment

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bec6ce-31b0d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bec6ce-31b0d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?