mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-26 07:49:24 +01:00
- head insert callback passed in with rule, up to template to handle additional inserts based on rule properties - ability to pass in custom rules config to both cdx server and content rewriter - move canonicalize to utils pkg - add wombat, modify wb.js to remove wombat-related settings
16 lines
535 B
HTML
16 lines
535 B
HTML
<!-- WB Insert -->
|
|
{% if rule.js_rewrite_location %}
|
|
<script src='{{ wbrequest.host_prefix }}/static/default/wombat.js'> </script>
|
|
<script>
|
|
WB_wombat_Init("{{wbrequest.wb_prefix}}", "{{cdx['timestamp']}}", "{{cdx['original'] | host}}");
|
|
</script>
|
|
{% endif %}
|
|
|
|
<script>
|
|
wbinfo = {}
|
|
wbinfo.capture_str = "{{ cdx['timestamp'] | format_ts }}";
|
|
</script>
|
|
<script src='{{ wbrequest.host_prefix }}/static/default/wb.js'> </script>
|
|
<link rel='stylesheet' href='{{ wbrequest.host_prefix }}/static/default/wb.css'/>
|
|
<!-- End WB Insert -->
|