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

Menu