File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -279,12 +279,16 @@ dist/
279
279
### Jinja Templates
280
280
281
281
Files can be created from Jinja templates.
282
- These are created after the SCSS and JS files are compiled, and allow for a special ` compiled_name ` filter,
283
- which converts ab input file path to the compiled file name:
282
+ These are created after the SCSS and JS files are compiled.
283
+ In addition, they may be combined with two Jinja filters designed for this tool:
284
+
285
+ - ` compiled_name ` will convert an input file path to the compiled file name.
286
+ - ` hash ` will return the hash for a filename that can be inserted wherever you wish.
284
287
285
288
` src/file.j2 ` :
286
289
``` jinja
287
290
{{ "src/file.scss" | compiled_name }}
291
+ {{ "src/file.scss" | compiled_name }}?digest={{ "src/file.scss" | hash }}
288
292
{{ var1 }}
289
293
```
290
294
@@ -307,6 +311,7 @@ $ web-compile
307
311
` dist/file.txt ` :
308
312
```
309
313
file.beabd761a3703567b4ce06c9a6adde55.css
314
+ file.beabd761a3703567b4ce06c9a6adde55.css?digest=beabd761a3703567b4ce06c9a6adde55
310
315
other
311
316
```
312
317
You can’t perform that action at this time.
0 commit comments