Skip to content

Instantly share code, notes, and snippets.

@ralyodio
Created October 24, 2012 08:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ralyodio/ceb9aed5c5ee5ff17f05 to your computer and use it in GitHub Desktop.
Save ralyodio/ceb9aed5c5ee5ff17f05 to your computer and use it in GitHub Desktop.
layout is not defined] path: undefined } ReferenceError: ejs:1
>> 1| <% layout('../layout') -%> 2| <h1>Welcome to <%= appname %></h1>
3| <p>Hello <%= username %>!</p> 4| <p>We are excited to have you join <%= appname %>, where you can create a
nd share wishlists with your friends.</p>
layout is not defined
Here's a sample:
./templates/layout.ejs
<html>
<body>
<%- body %>
</body>
</html>
./templates/welcome.ejs
<% layout('../layout') %>
<h1>Welcome</h1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment