diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-08-11 20:14:55 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-08-11 20:14:55 +0200 |
commit | 75d5a9234353d50d90f853175bf9af5b41d42044 (patch) | |
tree | d0c252cb8ca989e39717e01770911f4944298175 /templates/display.html.ep | |
parent | 661f3d079c7643acac16ffa372c20d80ee42244b (diff) |
use asset versioning
Diffstat (limited to 'templates/display.html.ep')
-rw-r--r-- | templates/display.html.ep | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/display.html.ep b/templates/display.html.ep index 4cf52a2..5a98e1a 100644 --- a/templates/display.html.ep +++ b/templates/display.html.ep @@ -3,8 +3,9 @@ <head> <title><%= $title %></title> <meta charset="utf-8"> - %= stylesheet '/static/display.css' - %= javascript '/static/jquery-2.1.1.min.js' + % my $av = 'v1'; # asset version + %= stylesheet "/static/${av}/css/display.css" + %= javascript '/static/js/jquery-2.1.1.min.js' </head> <body style="color: #<%= join(q{}, map { sprintf('%02x', $_) } @{$color} ) %>; font-size: <%= $scale * 100 %>%;"> |