mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-27 16:24:30 +01:00
the value fo collinfo.json template. Default template returns an entry for each handler route, including the route path (id), title (name) and memento timegate and timemap paths, to be used with an aggregator. Using a custom 'info_json' template can specify a different collinfo template, alternative to #69 (local aggregation) Closes #146
16 lines
370 B
JSON
16 lines
370 B
JSON
[
|
|
{% for route in routes %}
|
|
{% if route | is_wb_handler %}
|
|
{{ ',' if notfirst else '' }}
|
|
{
|
|
"id": "{{ route.path }}",
|
|
"name": "{{ route.user_metadata.title if route.user_metadata.title else route.path }}",
|
|
"timegate": "{{ host }}/{{route.path}}/",
|
|
"timemap": "{{ host }}/{{route.path}}/timemap/*/"
|
|
|
|
}
|
|
{% set notfirst = true %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
]
|