Learn the front-end template engine jade (1), front-end jade

Source: Internet
Author: User

Learn the front-end template engine jade (1), front-end jade
1. Why Learning jade? 2. Start jade installation.

3. Start Using jade to build a front-end template.

2. We can write the jade template code in the jade file, which is very easy to understand.

3. the code above can be understood by everyone. It is to create a regular front-end html file, but the specification is the jade specification. Then we can go to the cmd command line tool cd to the current folder, then, the current jade file is compiled. A compressed html file is generated in the same directory.

4. compressed files can be uncompressed by adding-P. If you have to execute the command line every time you change the template, isn't it necessary? We can add jade-P-w jade. jade adds a-w to enable the monitoring mode. Every time you change the template, html files are automatically compiled.

5. Now let's take a look at the generated html file. Has the normal html dom tree been generated?

4. Be familiar with jade specifications.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.