Updated Development (markdown)

master
El RIDO 8 years ago
parent 5c648c2dfa
commit d91aabc22a

@ -79,4 +79,11 @@ public function createComment($pasteid, $parentid, $commentid, $comment)
$comment['meta']['vizhash'] // text or null (if anonymous)
$comment['meta']['postdate'] // int UNIX timestamp
}
```
```
## Subresource Integrity for Javascript resources
Because we implemented [Subresource Integrity (SRI)](https://www.w3.org/TR/SRI/) the SRI hashes in the templates need to be regenerated after each change of a javascript file. To make this easy, we implemented a mechanism for this into the unit testing bootstrap process. After changing any javascript file, follow this process:
* edit the javascript file(s)
* run the unit tests as described above
* deploy the updated javascript file(s) _and_ the updated templates on your webserver
Loading…
Cancel
Save