#6: Template Engines (Pug, hbs, EJS) in Node JS  | Add Dynamic Content in Express JS in Hindi

#6: Template Engines (Pug, hbs, EJS) in Node JS | Add Dynamic Content in Express JS in Hindi

Thapa Technical

3 года назад

176,349 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

HAILEX
HAILEX - 07.11.2023 16:42

I don't think there is any special usecase for handlebars or pug if you're using React as a front end for your project.

Ответить
Music
Music - 26.10.2023 14:30

temple engine are deprecated

Ответить
Arnold Smith
Arnold Smith - 01.10.2023 10:31

use this if you are getting lookup error :app.set("views", path.join(__dirname, "../views"));

Ответить
Good🏵️🏵️
Good🏵️🏵️ - 21.09.2023 20:07

💗❤️

Ответить
Cruze Gaming
Cruze Gaming - 05.09.2023 20:06

Like comment done ❤ and thanx for awesome videos❤

Ответить
Dolly Agarwal
Dolly Agarwal - 01.09.2023 18:22

sir meri code main Failed to lookup view "index" in views directory yeh error aa rahi h what I do

Ответить
Moazzam Fayyaz
Moazzam Fayyaz - 24.08.2023 14:04

thanks buddy for this tutorial i was frustrating about pug etc it's simple and easy

Ответить
Vishal k Yadav
Vishal k Yadav - 11.08.2023 21:04

bro when i use hbs to load a page it doesn't get styles?

Ответить
Azim Memon
Azim Memon - 27.07.2023 17:06

Failed to lookup view error solution:
In the terminal just type node src/index.js

Ответить
Hootyapaa
Hootyapaa - 20.07.2023 06:55

Osm explanation 🔥

Ответить
Asif Shaikasif
Asif Shaikasif - 31.05.2023 17:02

Why cant we use readfile module and then use replace method
For dynamic data

Ответить
Live well lounge
Live well lounge - 19.05.2023 00:59

hbs not working

Ответить
Random avg human🏳️‍🌈⃠
Random avg human🏳️‍🌈⃠ - 15.05.2023 09:06

thanks , this video cleared a lot of my doubts, when we did the weather app project i was wondering if there was an easy way to replace the data from api, and this makes it so easier.

Ответить
Ranjith Kumar
Ranjith Kumar - 14.05.2023 18:12

Hi Thapa, You are doing a great job, and Thank you so much😊😊

Ответить
venkatachalam
venkatachalam - 10.05.2023 03:10

Thapa ji pls explain little bit slowly,so we understand so better

Ответить
Vaibhav Gadhave
Vaibhav Gadhave - 26.04.2023 11:35

plz share link of source code for this

Ответить
Nitin Bhalani
Nitin Bhalani - 21.04.2023 11:06

Helpful video thanks you so much sir 🙏

Ответить
Faisal Mahmood
Faisal Mahmood - 04.04.2023 15:34

Thanks Very Nice

Ответить
Shivangi Joshi
Shivangi Joshi - 29.03.2023 13:00

Apne itne sare folders and jo cmd se files bnae wha m bht confuse hogyi and output m mjhe kch smjhni aya

Ответить
Shivangi Joshi
Shivangi Joshi - 29.03.2023 12:42

Mjhe kch b smjh ni ara kha konsa folder bnra kha file jari

Ответить
FactoMindset
FactoMindset - 25.02.2023 19:37

keep your views folder inside src accordingly then it will not show any error

Ответить
Hasi
Hasi - 25.02.2023 14:38

Aik to smj ni ati ye bkwas q krta ha har video wala k meri ye video dekho wo video dekho

Ответить
Monika Patel
Monika Patel - 24.02.2023 14:18

PS D:\NODEJS> npm start

> [email protected] start
> nodemon app.js

[nodemon] 2.0.20
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node app.js`
D:\NODEJS\app.js:11
expressHbs({
^

TypeError: expressHbs is not a function
at Object.<anonymous> (D:\NODEJS\app.js:11:3)
at Module._compile (node:internal/modules/cjs/loader:1218:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)
at Module.load (node:internal/modules/cjs/loader:1081:32)
at Module._load (node:internal/modules/cjs/loader:922:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47

Node.js v18.13.0
[nodemon] app crashed - waiting for file changes before starting...






how to solve the error plese help me

Ответить
Dàrk Rávéñ
Dàrk Rávéñ - 23.02.2023 18:15

Plz tell me

Ответить
Dàrk Rávéñ
Dàrk Rávéñ - 23.02.2023 18:15

Hello sir
My external css file is not linked with my hbs file

Ответить
alkesh kaba
alkesh kaba - 03.01.2023 16:54

Hello Sir,

Can you please Explain Difference Between express-handlebars, handlebars, hbs , I am getting very confused

Ответить
nakul rawal
nakul rawal - 25.12.2022 17:04

what if github is looking for index.html and we have index.hbs ....unless its index.html we wont be able to see the page any solution????

Ответить
RohiTECH
RohiTECH - 23.12.2022 11:15

which template engine is most usable nowaday

Ответить
My Aasara Gaming
My Aasara Gaming - 17.12.2022 09:53

i am getting html inside views without css and images applied. I mean It cannot fetching the assets?

Ответить
timepass😀
timepass😀 - 02.12.2022 09:57

Thanks bhai bhot haelping video ha

Ответить
ਸਰਦਾਰ Ni ਜੀ
ਸਰਦਾਰ Ni ਜੀ - 01.12.2022 14:59

Thank you brother 🥰🥰🥰🥰🥰🥰
Bs ek galti ki bajah se nhi chal raha tha 🥰🥰🥰🥰🥰🥰 ab chal gya 🥰🥰🥰🥰🥰😘😘😘😘😘😘😘😘😘😘😘😘

Ответить
AMAN LODHA
AMAN LODHA - 16.11.2022 19:01

plz provide source code(HTML,CSS) in proper way.

Ответить
Md Rahil Raj
Md Rahil Raj - 14.11.2022 22:53

Ответить
Mr Abul
Mr Abul - 01.11.2022 08:47

I try a lot of time but my css and js file are not set how can i set it please tell me

Ответить
Aaditya Kumar
Aaditya Kumar - 26.10.2022 16:49

11th video is not available??

Ответить
Hania Fatima
Hania Fatima - 15.10.2022 19:46

ye video smj ni ai 😢😢😢😢😭😭😭

Ответить
Guiders
Guiders - 01.10.2022 23:15

Error: Failed to lookup view "index" in views directory "E:\Express\src\views"
plese resolve this issue

Ответить
Talha Khan
Talha Khan - 30.09.2022 18:19

this one was good

Ответить
Awesome Gaming
Awesome Gaming - 26.09.2022 20:34

Thanks 🙏

Ответить
NonTechBg
NonTechBg - 24.09.2022 14:45

Today is 24 9 2022

Ответить
NonTechBg
NonTechBg - 24.09.2022 14:45

Thank you 😇

Ответить
MURITALA oludege
MURITALA oludege - 21.09.2022 15:50

Please I have a question, I have more than one collection which I want pass to my index page, please how can I do it

Ответить
Bhawna Nagar
Bhawna Nagar - 19.09.2022 15:09

Css and js not working in index.hbs
Anyone Plz guide me

Ответить
Umar Farooq
Umar Farooq - 30.08.2022 11:44

you make things very confusing🙄🙄🙄

Ответить
Virender Singh
Virender Singh - 21.08.2022 09:29

Errorr : cannot find module hbs

Ответить
Rakesh kumar yadav
Rakesh kumar yadav - 11.08.2022 06:36

Html file is showing but style.css file is not implementing it is pure html
How add css file
Please Clear my doubt
Node/ExpressJS
In ExpressJS
Folder present: musicapp ,views,src
In music app index.html, style.css
in views: index.hbs code of musicapp html
in src: index.js

node\expressJS>node src/index.js

Ответить
Awesome Gaming
Awesome Gaming - 10.08.2022 11:11

Thanks Bhai 😁

Ответить
Ayüsh
Ayüsh - 01.08.2022 15:56

How to use bootstrap in pug ??

Ответить