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

EJS

EJS

EJS is a template created in 2010 by Tj Holowaychuk.

#389on PLDB 12Years 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>
altair-basic.html 路 ejs.html 路 squeak.html

View source

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