How are the variables defined in the jade template used?

block js
    script.
        var details = !{JSON.stringify(buyTips)}
        
block body
    .main -sharp{details}

details is the data returned by the background (taken from mock). I want to render it in html, but not to solve it in the above way?

Apr.01,2021

! {JSON.stringify (buyTips)} will not report an error

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-1bf0060-31cc9.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-1bf0060-31cc9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?