Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

How to use with express 4.x #87

Closed
westoj opened this issue Sep 10, 2015 · 1 comment
Closed

How to use with express 4.x #87

westoj opened this issue Sep 10, 2015 · 1 comment

Comments

@westoj
Copy link

westoj commented Sep 10, 2015

I'm trying to get this up and running but don't see how I can use app.dynamichelpers with express 4.x?

@westoj
Copy link
Author

westoj commented Sep 11, 2015

I did away with:

if (semver.gte(express.version, '3.0.0'))
app.locals({ CDN: CDN() });
else
app.dynamicHelpers({ CDN: CDN });

and changed to

app.locals.CDN = CDN();

which seemed to do the trick.

@westoj westoj closed this as completed Sep 16, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant