Layout route is malformed in express #292
aristizabal95
started this conversation in
Working with Express
Replies: 2 comments
-
Put a '.liquid' in
Or set it as a default when creating Liquid instance: const engine = new Liquid({ extname: '.liquid' }); I'll try to make it clear in tutorials. |
Beta Was this translation helpful? Give feedback.
0 replies
-
The |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use layouts in my express app but the app fails with this error
I'm using the
express-generator
app.js
template, and modified it to require Liquidjs like this:As indicated on the guides you provide.
The
index.liquid
file only loads the layout and adds "Hello World".Once I remove the layout line everything works.
It seems that the layout route has an ",." appended to the end.
Beta Was this translation helpful? Give feedback.
All reactions