Top 1,000 Features Creators Events Podcasts Extensions Interviews Blog Explorer CSV

EJS

< >

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

#123on 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>

View source

- Build the next great programming language About Resources Acknowledgements Part of the World Wide Scroll