Javascript

Home Load Console Selectors CSS Form Strings If Else Array Reg Exp Date & Time setTimeout JSON Loops Objects Animation Fat Arrow Class Import IIFE undefined Tabulator.js ES6 Event Listeners AJAX Hide Elements Create Elements Checkbox ejs
O O

Weather Controls

Time Of Day
Rain
Wind Speed
Wind Direction
Clouds

Javascript : ejs

2023-04-28

https://ejs.co/

https://www.npmjs.com/package/ejs

<% if (locals.gmode) { %>
    <% if (locals.gmode == 'add') { %>
        <div>Add: <%= locals.text %></div>
    <% } else { %>
        <div>Edit: <%= locals.text %></div>
    <% } %>
<% } %>
<title>Website | <%= locals.title || modvar.title || "" %></title>

<title><% if (locals.title) { %><%= locals.title %><% } %></title>
var rows =<%-JSON.stringify(rows)%>;
<% if (locals.title) { %><%= locals.title %><% } %>
<li class='nav-item'><a class='nav-link <% if (locals.modvar && modvar.nav=="dashboard") { %> active <% } %>' href='/'>Dashboard</a></li>