Insert all javascript files from a dir as scripts in Jade programmatically

I have a Jade file index.jade and I have a dir public\js that contains a few js script files.

views
    index.jade
public
    js
        a.js
        b.js
        ...

Is there a way to automatically and programmatically include them all as scripts in the index.jade?

script(src='/js/a.js')
script(src='/js/b.js')
...