I can find solutions to pass local variables from jade to javascript, for example:
script.
var myVar = `#{myVar}`;
script(src=src)
But since I want to use my jade template for many views, with different sets of variables, I wonder if it is possible to pass ALL available local variables.