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

add support for ejs-mate #16

Merged
merged 6 commits into from
Sep 23, 2017
Merged

Conversation

BigMurry
Copy link
Contributor

As the original ejs does not support layout, but this functionality is very useful. The ejs-mate package adds layout support for ejs. This pr makes ejs-mate happy with point-of-view.

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work, a couple of nits and it’s good to go! Can you remove yarn.lock and place that into .gitignore?

index.js Outdated
if (err) return that.send(err)
that.header('Content-Type', 'text/html').send(html)
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please move this closure-factory outside of this function? There is no need to allocate it here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure. Good point.

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@delvedor delvedor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mcollina mcollina merged commit 4f810ce into fastify:master Sep 23, 2017
@BigMurry BigMurry deleted the feature/ejsmate branch September 25, 2017 01:05
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.

3 participants