1

I use templating syntax JADE http://jade-lang.com/

I have an external js (text.js) file with some text variables

module.exports = {
  TITLE: 'my title',
}

In my JADE file i want to use my variable, how to do that, i have try this but it's doesn't work

script(src="./text.js")

  p My variable
  p #{TITLE}

How to do that ?

Thanks

Lionel B
  • 1,172
  • 2
  • 9
  • 24

0 Answers0