.PUG 文件扩展名

Pug Template

开发者 Pug
受欢迎程度
3.7  |  15 
 

什么是 PUG 文件?

A PUG file is a template written in the Pug language, which is a shorthand HTML language that is used similarly to the Emmet and Markdown languages. It contains HTML code in the standard syntax but does not include closing tags and instead emphasizes indentations. PUG files are commonly used to create dynamic webpages, whereas .HTML files generally produce static webpages.

更多信息

在 Microsoft Visual Studio Code 中打开的 .pug 文件截图
在 Microsoft Visual Studio Code 中打开的 PUG 文件

You will most likely only encounter a PUG file if you are a web developer utilizing the Pug templating engine for generating dynamic HTML webpages. Pug allows developers to create webpages with re-usable static markup, while inserting dynamic elements on the pages that will be filled with information from an external source, like a database, later.

For example, a developer may use a PUG file when creating a website where employees of a company can update their personal information. The PUG template contains static markup for the page layout that makes the appearance similar for each employee. However, the template also stores dynamic elements, like an “employeename” tag, that is filled in with the employee name from the database when a user requests the page.

Pug may be utilized on the frontend (executed in web browsers) or on the backend (executed with NodeJS, a JavaScript runtime environment) of a website. It is one of many JavaScript templating engines used by web developers, along with EJS, Mustache, Handlebars, HAML, Vash, and Nunjucks.

注: Pug was formerly known as Jade but was renamed in 2015.

使用File Viewer Plus打开 400 多种文件格式。免费下载

可打开 PUG 文件的程序

Windows
Linux
免费
免费试用
免费
分类: 开发者
更新时间: 2020-04-30

验证者 FileInfo.com

FileInfo.com 团队 独立研究了本页面列出的 Pug Template 文件格式和 Mac, Windows, and Linux 应用。 我们的目标是达到 100% 的准确率,并且仅发布我们已验证过的文件类型信息。

如果您想为此页面提出新增或更新建议,请告诉我们