Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
973 views
in Technique[技术] by (71.8m points)

flask - Random Naming of Resources Files within Jinja

Someone asked me a question, I didn't know how to do it... so maybe we could crowd source this..

The stack is,

  • flask
  • jinja2

The question is,

How could you randomize the naming of resource files on the front end such as style.css and main.js without changing the static file or making different file names of the same static file?

To look something like this,

2909230924.css or 439049024.js the randomized name doesn't really matter, so these are examples.

question from:https://stackoverflow.com/questions/65883471/random-naming-of-resources-files-within-jinja

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...