mirror of
https://github.com/YGGverse/nexy.git
synced 2026-03-31 17:25:27 +00:00
reorganize template processor, implement new server options, optimize component init arguments
This commit is contained in:
parent
60f702b3d1
commit
b93f389304
9 changed files with 126 additions and 61 deletions
|
|
@ -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)?,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue