Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

EJS

< >

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

#145on PLDB 14Years Old 93kRepos
Download source code:
git clone https://github.com/tj/ejs
Leet SheetSource Code

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>

- Build the next great programming language Add Issues About Search Keywords Livestreams Labs Resources Acknowledgements

Built with Scroll v154.3.0