Browse Source

use script integrity hash in template

master
Tsia 3 years ago
parent
commit
584eed8b6f
  1. 2
      templates/example/layout.twig

2
templates/example/layout.twig

@ -5,7 +5,7 @@
<title>HTMLEngine</title>
<link href="{{ basepath }}static/css/style.css" rel="stylesheet" media="screen" type="text/css">
<link rel="shortcut icon" href="{{ basepath }}static/favicon.ico" type="image/x-icon">
<script src="{{ basepath }}static/js/notjquery.js"></script>
<script src="{{ basepath }}static/js/notjquery.js" integrity="{{ integrityHash('js/notjquery.js') }}"></script>
<!--[if lte IE 7]>
<link href="{{ basepath }}static/css/ie.css" rel="stylesheet" media="screen" type="text/css" />
<![endif]-->

Loading…
Cancel
Save