]> git.proxmox.com Git - proxmox-backup.git/commit - src/bin/proxmox-backup-proxy.rs
server/config: add mechanism to update template
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 21 Jul 2020 09:10:36 +0000 (11:10 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 23 Jul 2020 09:55:00 +0000 (11:55 +0200)
commit2ab5acac5a59babb13f164dcf4d802daf05cc34b
tree02c7dd88afb52f64f18ba72ed321e8bf8c1bc93f
parent27fde6479448a90298acd3223ffaf5774be6a58d
server/config: add mechanism to update template

instead of exposing handlebars itself, offer a register_template and
a render_template ourselves.

render_template checks if the template file was modified since
the last render and reloads it when necessary

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/bin/proxmox-backup-proxy.rs
src/server/config.rs
src/server/rest.rs