1

找不到部分标题如何解决这个问题我不知道如何解决这个问题

文件夹 Stucher 图片

const express = require('express');

const port = 3000;

const app = express();

const hbs = require('hbs');

const path = require('path');


const templetpath = path.join(__dirname,"../tempEngin/templet/views");

const partial = path.join(__dirname,"../tempEngin/templet/partial")

app.set('view engine',"hbs");

app.use(express.static("templet"));

 hbs.registerPartials('partial');

app.set('views',templetpath);


app.get("",(req,res)=>{
   res.render("index")
})

app.listen(port,()=>{
    console.log("server created")
})
4

0 回答 0