node.js - Insert all javascript files from a dir as scripts in Jade programmatically -


i have jade file index.jade , have dir public\js contains few js script files.

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

is there way automatically , programmatically include them scripts in index.jade?

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


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -