-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathworkpug.html
More file actions
290 lines (236 loc) · 11.9 KB
/
workpug.html
File metadata and controls
290 lines (236 loc) · 11.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="./assets/img/favicon.ico">
<title>PUG</title> <script type="module" crossorigin src="./js/app.min.js?v=1774807247387"></script>
<link rel="stylesheet" crossorigin href="./css/app.min.css?v=1774807247387">
</head>
<body>
<div class="wrapper">
<header class="header" data-anim-header="" data-anim-header-scroll="">
<div class="header__container">
<nav class="menu__body">
<a class="menu__logo" href="/docs/index.html">
<img src="./assets/img/logo.jpg" aria-label="Animmaster Logo" width="50" height="50">
</a>
<ul class="menu__list">
<li class="menu__item">
<a class="menu__link" href="/docs/index.html">Documentation</a>
</li>
<li class="menu__item">
<a class="menu__link menu__link--special" target="_blank" href="https://www.patreon.com/collection/1946808?view=condensed">Animmaster PRO Pack</a>
</li>
</ul>
</nav>
</div>
</header>
<main class="page">
<div data-anim-pugdoc="" class="doc">
<section class="doc-page box-padding">
<div class="doc-page__container">
<!-- ========================================================= -->
<!-- Top -->
<!-- ========================================================= -->
<div class="doc-top">
<a class="doc-top__back" href="/docs/index.html">← Back to Documentation</a>
</div>
<!-- ========================================================= -->
<!-- Hero -->
<!-- ========================================================= -->
<div class="doc-hero" id="top">
<p class="doc-hero__kicker">Documentation</p>
<h1 class="doc-hero__title">
PUG templating
<span class="doc-hero__title-sub">
Working with the PUG template engine in Animmaster Vite Template
</span>
</h1>
<p class="doc-hero__lead">
In <strong>Animmaster Vite Template</strong> you can use the
<strong>PUG templating engine</strong> to write cleaner, more structured markup
and speed up HTML development.
</p>
<div class="doc-actions">
<a class="doc-btn doc-btn--primary doc-btn--pulse" href="https://www.patreon.com/collection/1946808?view=condensed" target="_blank" rel="noreferrer">
<span class="doc-btn__text doc-btn__text--default">
Download <span>Animmaster</span> Vite Template
</span>
<span class="doc-btn__text doc-btn__text--hover">
Save your time — start now
</span>
</a>
</div>
</div>
<div class="doc-layout">
<article class="doc-content">
<!-- ========================================================= -->
<!-- 1) What is PUG -->
<!-- ========================================================= -->
<section class="doc-section" id="about" data-anim-watcher="navigator">
<h2 class="doc-h2">What is PUG?</h2>
<p class="doc-p">
PUG is a powerful HTML templating engine that allows you to write markup
using indentation instead of closing tags. This results in shorter,
more readable code and faster development.
</p>
<div class="doc-callout">
<div class="doc-callout__title">Good to know</div>
<div class="doc-callout__text">
PUG is optional in Animmaster Vite Template — you can freely mix classic HTML and PUG
depending on project needs.
</div>
</div>
</section>
<!-- ========================================================= -->
<!-- 2) Enable PUG -->
<!-- ========================================================= -->
<section class="doc-section" id="enable" data-anim-watcher="navigator">
<h2 class="doc-h2">Enable PUG processing</h2>
<p class="doc-p">
To start using PUG, enable it in the build configuration file
<code>template.config.js</code>.
</p>
<div class="codeblock" data-codeblock="">
<div class="codeblock__top">
<div class="codeblock__file">template.config.js</div>
<button class="codeblock__copy" type="button" data-copy="">Copy</button>
</div>
<pre class="codeblock__pre"><code class="codeblock__code">
pug: {
enable: true
}</code></pre>
</div>
</section>
<!-- ========================================================= -->
<!-- 3) Connect PUG to HTML -->
<!-- ========================================================= -->
<section class="doc-section" id="connect" data-anim-watcher="navigator">
<h2 class="doc-h2">Connect a PUG file</h2>
<p class="doc-p">
To use a PUG template on a page, include it directly in an HTML file
using the <code><pug></code> tag.
</p>
<div class="codeblock" data-codeblock="">
<div class="codeblock__top">
<div class="codeblock__file">HTML</div>
<button class="codeblock__copy" type="button" data-copy="">Copy</button>
</div>
<pre class="codeblock__pre"><code class="codeblock__code"><pug src="@pug/index.pug"></pug></code></pre>
</div>
<p class="doc-p">
The specified PUG file will be compiled and injected into the final HTML
during development and build.
</p>
</section>
<!-- ========================================================= -->
<!-- 4) PUG files location -->
<!-- ========================================================= -->
<section class="doc-section" id="structure" data-anim-watcher="navigator">
<h2 class="doc-h2">Where to work with PUG files</h2>
<p class="doc-p">
All PUG source files are stored in the following directory:
</p>
<div class="doc-callout doc-callout--accent">
<div class="doc-callout__title">PUG folder</div>
<div class="doc-callout__text">
<code>src/pug</code>
</div>
</div>
<p class="doc-p">
After enabling PUG and connecting files, simply run:
<code>npm run dev</code>
and start editing your PUG templates.
</p>
</section>
<!-- ========================================================= -->
<!-- 5) Workflow summary -->
<!-- ========================================================= -->
<section class="doc-section" id="workflow" data-anim-watcher="navigator">
<h2 class="doc-h2">Typical workflow</h2>
<ul class="doc-list">
<li class="doc-list__item">Enable PUG in <code>template.config.js</code></li>
<li class="doc-list__item">Create PUG files in <code>src/pug</code></li>
<li class="doc-list__item">Connect them via <code><pug src="..."></code></li>
<li class="doc-list__item">Run <code>npm run dev</code></li>
<li class="doc-list__item">Write clean, structured markup with PUG</li>
</ul>
</section>
<!-- ========================================================= -->
<!-- Download -->
<!-- ========================================================= -->
<section class="doc-section" id="download" data-anim-watcher="navigator">
<h2 class="doc-h2">Download</h2>
<p class="doc-p doc-p--margin-b">
PUG support is just one part of the powerful workflow inside Animmaster Vite Template.
Download the template and build projects faster with a clean, modern setup.
</p>
<div class="doc-actions">
<a class="doc-btn doc-btn--primary doc-btn--pulse" href="https://www.patreon.com/collection/1946808?view=condensed" target="_blank" rel="noreferrer">
<span class="doc-btn__text doc-btn__text--default">
Download <span>Animmaster</span> Vite Template
</span>
<span class="doc-btn__text doc-btn__text--hover">
Save your time — start now
</span>
</a>
</div>
</section>
<div class="doc-divider"></div>
<!-- ========================================================= -->
<!-- Next -->
<!-- ========================================================= -->
<nav class="doc-next">
<a class="doc-next__link" href="/docs/github.html">
Next: Automatic upload of the build to GitHub
<span class="doc-next__arrow">→</span>
</a>
</nav>
</article>
<!-- ========================================================= -->
<!-- TOC -->
<!-- ========================================================= -->
<aside class="doc-toc" aria-label="On this page">
<div class="doc-toc__box">
<div class="doc-toc__title">On this page</div>
<ol class="doc-toc__list">
<li><a class="doc-toc__link" href="#" data-anim-scrollto-header="" data-anim-scrollto="#about">About
PUG</a></li>
<li><a class="doc-toc__link" href="#" data-anim-scrollto-header="" data-anim-scrollto="#enable">Enable</a></li>
<li><a class="doc-toc__link" href="#" data-anim-scrollto-header="" data-anim-scrollto="#connect">Connect</a></li>
<li><a class="doc-toc__link" href="#" data-anim-scrollto-header="" data-anim-scrollto="#structure">Structure</a></li>
<li><a class="doc-toc__link" href="#" data-anim-scrollto-header="" data-anim-scrollto="#workflow">Workflow</a></li>
<li><a class="doc-toc__link" href="#" data-anim-scrollto-header="" data-anim-scrollto="#download">Download</a></li>
</ol>
</div>
</aside>
</div>
</div>
</section>
</div>
</main>
<footer class="footer" data-anim-footer="">
<div class="footer__container">
<!-- BOTTOM -->
<div class="footer__bottom">
<p class="footer__copy">© 2026 Animmaster</p>
<div class="footer__bug">
<span>Found bug?</span>
<a href="mailto:animmasterstudio@gmail.com">
Report it
</a>
</div>
<div class="footer__author">
Crafted with <span>🤍</span> by
<a target="_blank" href="https://www.instagram.com/animmaster_studio?igsh=MXN0MXkycGxrbDlpag==">
Animmaster
</a>
</div>
</div>
</div>
</footer>
</div>
</body>
</html>