reorganize template processor, implement new server options, optimize component init arguments

This commit is contained in:
yggverse 2025-06-25 00:42:22 +03:00
parent 60f702b3d1
commit b93f389304
9 changed files with 126 additions and 61 deletions

View file

@ -14,9 +14,9 @@ pub struct Session {
impl Session {
pub fn init(config: &crate::config::Config) -> anyhow::Result<Self> {
Ok(Self {
debug: Debug::init(&config.debug)?,
storage: Storage::init(&config.public, config.read_chunk)?,
template: Template::init(&config.template)?,
debug: Debug::init(config)?,
storage: Storage::init(config)?,
template: Template::init(config)?,
})
}
}