Created
December 26, 2016 19:46
-
-
Save lineharo/8aabc389debbdd8775f53e8c905958cf to your computer and use it in GitHub Desktop.
PUG - auto version .css or another files in HTML head
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- function pDate() { | |
- return new Date().getTime(); | |
- } | |
doctype html | |
html(lang="ru") | |
head | |
meta(charset="utf-8") | |
title TITLE | |
script(src="script.js?v" + pDate()) | |
link(rel="stylesheet" href= "style.css?v" + pDate()) | |
body |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output: