Node JSPowerShell

Dynamically populate data for drop down list using PUG in Node JS

Let me keep this blog simple and easy. All we need to achieve is to dynamically retrieve items in PUG drop down list. Here is the logic!

So, now let us create a data.json file – In my case it’s like below

For our demo let’s list the Skills in drop down list

Sample Code is here

Server.JS

In my next blog I will show the real time application demo using PowerShell !

Leave a Reply

Your email address will not be published. Required fields are marked *