当前位置:网站首页>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 !!!
边栏推荐
- Disk management and disk partition operation
- Tmall product details interface, tmall product coupon interface, tmall API interface, tmall price monitoring interface, tmall price comparison interface, brand rights protection interface, tmall sales
- Three methods to make the scroll bar of div automatically scroll to the bottom
- Shellshock Attack Lab
- Format_ String_ Server
- JS - print 99 multiplication table of the for cycle case
- Start from scratch - implement the jpetstore website -1- establish the project framework and project introduction
- Mobile terminal development I: basic concepts
- Use of addeventlistener in JS
- logstash配置参考文章
猜你喜欢

SQL injection question type (manual injection +sqlmap)

2021-04-16
![[pychart pit stepping record] prompt after configuring remote operation, [errno 2] no such file or directory](/img/71/92c06496a9d982294cac61595e0392.png)
[pychart pit stepping record] prompt after configuring remote operation, [errno 2] no such file or directory

ADT Google browser plug-in ad Terminator

Buffer Overflow Vulnerability Lab

When submitting the laravel admin form and using the required verification, an error is reported when the value is 0

Installing pytorch under Anaconda

On the use of regular expressions (bracket problem)

Yarn package management tool

centos 安装mysql及设置远程访问
随机推荐
Batch package and download Alibaba OSS files
Vscode double shortcut keys up, down, left and right
Invalid flex layout setting width
4、 Js-es5-i / O
Deploy Yum warehouse and NFS shared services
Document contains question type
JS - array de duplication in the array object case
MySQL sorts according to the specified order of the specified fields
Is signed or unsigned selected to create an integer field in MySQL? The answer is as follows:
京东商品详情接口,京东详情页接口,宝贝详情页接口,商品属性接口,商品信息查询,商品详细信息接口,h5详情,京东APP详情,京东api接口,京东历史价格数据接口代码对接分享
情绪处理技巧
How app inventor accesses resource files in assets directory
Problems in the deconstruction and assignment of objects, comparison between empty strings and undefined
关于RSA加密解密原理
Bidirectional retransmission step experiment
Numeric types in SQL. Try to avoid using null as the default value
Notes on development experience: TP5 exp query, SQL analysis, JQ, applet, right-click menu, Linux skills, shell skills, mysql, etc
Centering problem - the width and height of child elements are known
0.一些自己初學Solidworks的疑惑
【Pycharm踩坑记录】配置远程运行后提示,[Errno 2] No such file or directory