<%- include("/home/moni/EJS/layout/header.ejs") %> 

    <main>
        <form action="/" method="post">
            <input type="text" placeholder="programming language" name="pLanguage">
            <button type="submit">Add</button>
        </form>

        <ul>
            <%if(plNames.length > 0){ %>
                <%for(let x=0; x< plNames.length; x++){ %> 
                    <li><%= plNames[x] %></li>
                <%}%>
            <% }else{ %> 
                <p>No data found!</p>
            <%}%>
        </ul>
    </main>
    <%- include("/home/moni/EJS/layout/footer.ejs") %> 
