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

Express Handlebars support #88

Open
joshnoe opened this issue Aug 7, 2017 · 1 comment
Open

Express Handlebars support #88

joshnoe opened this issue Aug 7, 2017 · 1 comment

Comments

@joshnoe
Copy link

joshnoe commented Aug 7, 2017

Any idea how to make this work with express-handlebars?

@joshnoe
Copy link
Author

joshnoe commented Aug 7, 2017

Figured it out:

let viewEngine = expressHandlebars.create({
        defaultLayout: 'main',
        layoutsDir: 'server/views/layouts',
        partialsDir: 'server/views/partials'
    });

HandlebarsIntl.registerWith(viewEngine.handlebars);

I'll gladly create a PR adding this to the ReadMe if it'd get merged?

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

No branches or pull requests

1 participant