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/
279279### Jinja Templates
280280
281281Files 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.
284287
285288` src/file.j2 ` :
286289``` jinja
287290{{ "src/file.scss" | compiled_name }}
291+ {{ "src/file.scss" | compiled_name }}?digest={{ "src/file.scss" | hash }}
288292{{ var1 }}
289293```
290294
@@ -307,6 +311,7 @@ $ web-compile
307311` dist/file.txt ` :
308312```
309313file.beabd761a3703567b4ce06c9a6adde55.css
314+ file.beabd761a3703567b4ce06c9a6adde55.css?digest=beabd761a3703567b4ce06c9a6adde55
310315other
311316```
312317
You can’t perform that action at this time.
0 commit comments