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 jade compile issues and updated tests to verify fix. #814

Merged
merged 1 commit into from May 4, 2013
Merged

Fixed jade compile issues and updated tests to verify fix. #814

merged 1 commit into from May 4, 2013

Conversation

wolfeidau
Copy link
Contributor

Currently on master if try out the jade view example located in examples/views/jade you will loading the index view triggers a 500 error.

The first issue is the example is trying to load .html as jade files.

The second issue is associated with the use of extends in the example, to enable using shared layouts.

The message for this error is as follows:

Error: the "filename" option is required to use "extends" with "relative" paths

I have resolved this by updating the attribute used to pass the template filename to jade lib/views.js

Lastly I added a shared layout to the existing jade template test to ensure this doesn't crop up again.

Thanks

hueniverse pushed a commit that referenced this pull request May 4, 2013
Fixed jade compile issues and updated tests to verify fix.
@hueniverse hueniverse merged commit 2233f59 into hapijs:master May 4, 2013
@ghost ghost assigned hueniverse May 4, 2013
@wolfeidau wolfeidau deleted the fixes_for_jade_views branch May 4, 2013 03:08
jmonster pushed a commit to jmonster/hapi that referenced this pull request Feb 10, 2014
Fixed jade compile issues and updated tests to verify fix.
@lock lock bot locked as resolved and limited conversation to collaborators Jan 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants