PLDB
Languages Features Calendar CSV Lists Blog About Donate Add Language
GitHub icon

EJS

< >

EJS is a template language created in 2010 by Tj Holowaychuk.

#392on PLDB 13Years Old 6.3kUsers
0Books 0Papers 93kRepos

Embedded JavaScript templates for node


Example from the web:
<% if (user) { %> <h2><%= user.name %></h2> <% } %>
Example from Linguist:
<% include parts/depend %> <div class="row"> <% if (user.primaryAccount == "teacher") { %> <% include teacher/sidebar %> <% include teacher/dashboard %> <% } else if (user.primaryAccount == "student") { %> <% include student/sidebar %> <% include student/dashboard %> <% } else { %> <center><h2>There seems to be a problem</h2></center> <% } %> </div>
freebasic.html 路 ejs.html 路 falcon.html

View source

PLDB - Build the next great programming language 路 v2023 Day 153 Docs Build Acknowledgements Traffic Today Traffic Trends Mirrors GitHub feedback@pldb.com