Jade template only layout.jade can write introverted script. What is the reason why script written in other templates are not analyzed?

  node.js, question

I use nodegade as a small site. Jade found that only layout.jade can write introverted script. What is the reason why script written in other templates are not analyzed? What is the solution?

Can you post more codes? The content is too little to judge the specific reason.

The new jade needs to be added.

script.
 var a = {}