当前位置:网站首页>Replace jade engine with EJS
Replace jade engine with EJS
2022-06-13 08:41:00 【huangxunlove】
In the use of express When the framework , The default engine is jade,views It will generate the following
And for jade What I am not familiar with can only be changed into ejs.
- see express edition
express --version
- install ejs
npm i ejs -s
3.view Engine changes
Delete... At this time views Under the index.jade, add to index.ejs, Fill in the following code
<h1>
<%= title%>
</h1>
<p>
welcome to <%= title%>
</p>
again npm run start, Visit the browser
Change succeeded !!!
边栏推荐
- VS安装VAssistX插件导致WPF-XAML文件输入中文出现乱码问题解决方案
- File upload question type
- Tiktok keyword search list interface, ultra detailed interface docking steps
- Four ways to install MySQL in Linux
- 天猫商品详情接口,天猫商品优惠券接口,天猫api接口,天猫价格监控接口,天猫比价接口,品牌维权接口,天猫销量api接口,接口代码可对接数据分析业务,品牌维权,比价业务,行业分析业务接口代码分享
- Problems in the deconstruction and assignment of objects, comparison between empty strings and undefined
- Vs installation of vassistx plug-in causes Chinese input of wpf-xaml file to be garbled. Solution
- How to download and install stm32cubemx
- Redis分布式集群搭建
- Logstash configuration reference article
猜你喜欢
A solution to create a new EXCEL workbook on win10 computer and change the suffix to xlsm (normally it should be xlsx)
HCIP_ MGRE comprehensive experiment
HCIP_ MGRE experiment
Svg text stroke effect
When submitting the laravel admin form and using the required verification, an error is reported when the value is 0
SQL injection experiment
容器概念和云原生
Format_ String_ Server
[pychart pit stepping record] prompt after configuring remote operation, [errno 2] no such file or directory
Microservice system architecture construction I: Environment Construction
随机推荐
容器概念和云原生
Redis subscribe connection timeout interrupt problem solution
学习记录4: einops // cudnn.benchamark=true // hook
Deploy Yum warehouse and NFS shared services
JS - set countdown for Date object case
Journal d'acquisition du faisceau de fichiers à Elk
CentOS installing MySQL and setting up remote access
8、 JS data type conversion
DIY UAV (anonymous controller p2+f330 rack)
MySQL query exercise 3
Centering problem - the width and height of child elements are known
JS array method
关于RSA加密解密原理
JS gets the first month of the year, the second month to the last month, and the first day to the last day
HCIP_ OSPF irregular area
天猫商品详情接口,天猫商品优惠券接口,天猫api接口,天猫价格监控接口,天猫比价接口,品牌维权接口,天猫销量api接口,接口代码可对接数据分析业务,品牌维权,比价业务,行业分析业务接口代码分享
Data accuracy problems caused by inconsistent data types during sum in MySQL
redis.exceptions.ConnectionError: Error 111 connecting to 172.16.8.128:6379. Connection refused.
JS array using the reduce() method
Buuctf web (III)