Includes Including Plain Text Including Filtered Text Includes Includes allow you to insert the contents of one Pug file into another. //- index.pug doctype html html ...
迭代 Iteration ~~ Iteration each while 迭代 Iteration ~~ Iteration Pug 目前支持两种主要的迭代方式: each 和 while 。 each 这是 Pug 的头等迭代方式,让您在模板中迭代数组和对象更为简便: ul each val in [ 1 , 2 ,...
Doing it yourself Doing it yourself We’ve come quite far now. Your knowledge of C should be good enough for you to stand on your own feet a little more. If you’re feeling conf...
Using Vue in Markdown Browser API Access Restrictions Templating Interpolation Directives Access to Site & Page Data Escaping Using Components Using Pre-processors Script &...
Conditionals Conditionals Pug’s first-class conditional syntax allows for optional parentheses. If you’re coming from Pug v1, you may now omit the leading - . Otherwise, it’s ...