Languages Features Creators CSV Resources Challenges Add Language
GitHub icon

EJS

EJS - Template language

< >

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

#391on 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>
falcon.html 路 ejs.html 路 freebasic.html

View source

- Build the next great programming language Search Day 214 About Blog Acknowledgements Traffic Traffic Today GitHub feedback@pldb.com