how to render conditional templates in res.render() #4837
moezbenrebah
started this conversation in
General
Replies: 1 comment 3 replies
-
This is more learning how JavaScript works than anything about Express, but either your code is throwing an error or it's never going into the Example: ![] // false
![1,2,3] // false |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone, I'm a student in web development, I built a web application, where I tried to implement in one of the route handler function a way to render 2 templates whenever its condition is fulfilled, but I didn't figure out how to reach my goal, so I tried like below, but it didn't work:
Sorry, I'm a beginner and I try to find an adequate solution to my case but I didn't, and I'll appreciate your suggestions
Beta Was this translation helpful? Give feedback.
All reactions