0

How to restrict handlebars-partials while rendering specific pages ?

                   Or

How to enable handlebars-partials while rendering specific pages only ?

Muneeb T
  • 1
  • 1
  • Muneeb you have to pass some variables with your controller when you render those pages and you can set if block on the frontend ( hbs side ) if those variables are true at that time pass this partials page. – Smit Gajera Oct 14 '21 at 07:31
  • Ex :- Send this when you render page path: "/user", ```<% if (path === /user ){ %>``` Your Logic ```<%}%>``` This EJS syntax you follow may Hbs Syntax – Smit Gajera Oct 14 '21 at 07:34
  • Have to clear quetion – Smit Gajera Oct 14 '21 at 07:36

0 Answers0