Top 1,000 Features Creators Resources Blog Explorer Download
GitHub icon

EJS

< >

EJS is an open source template language created in 2010 by Tj Holowaychuk.

Source code:
git clone https://github.com/tj/ejs
#460on PLDB 14Years Old 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>

View source

- Build the next great programming language About Acknowledgements Extensions Day 626 feedback@pldb.io