1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-09 10:01:45 +03:00

Embed templates in binary & add command to export them

This commit is contained in:
Quentin Gliech
2021-09-16 23:39:07 +02:00
parent e44197a2cc
commit 76c69485e9
15 changed files with 505 additions and 306 deletions

View File

@ -49,7 +49,8 @@ impl ServerCommand {
let pool = config.database.connect().await?;
// Load and compile the templates
let templates = Templates::load().context("could not load templates")?;
// TODO: custom template path from the config
let templates = Templates::load(None, true).context("could not load templates")?;
// Start the server
let root = mas_core::handlers::root(&pool, &templates, &config);