Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Typo in Layout.ejs example #107

Closed
wants to merge 1 commit into from

Conversation

mikephoran
Copy link

Deleted <%- body %> from line 19. This is a typo. The "<% %>" brackets escape to javascript, so this line causes a "body is undefined" error. It was probably meant to read "", but "" already appears on the next line, so line 19 can simply be deleted.

Deleted <%- body %> from line 19.  This is a typo.  The "<% %>" brackets escape to javascript, so this line causes a "body is undefined" error.   It was probably meant to read "</body>", but "</body>" already appears on the next line, so line 19 can simply be deleted.
@jaredhanson
Copy link
Owner

body is what puts the actual view in the layout. If it is undefined, that points to a different problem.

@jaredhanson jaredhanson closed this Mar 3, 2015
@mikephoran
Copy link
Author

Layout.js is just part of your example folder. Your example doesn't have a 'body' variable nor does it make sense to have one. However, line 19 causes your example to fail, so I deleted it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants