mirror of
https://github.com/YGGverse/nexy.git
synced 2026-04-02 02:05:29 +00:00
optimize template storage handlers
This commit is contained in:
parent
8a11e420ee
commit
95f5f77d18
3 changed files with 33 additions and 17 deletions
|
|
@ -28,19 +28,27 @@ pub struct Config {
|
|||
pub public: String,
|
||||
|
||||
/// Absolute path to the `Access denied` template file
|
||||
///
|
||||
/// * this template file can be in binary format (e.g. image)
|
||||
#[arg(long)]
|
||||
pub template_access_denied: Option<String>,
|
||||
|
||||
/// Absolute path to the `Internal server error` template file
|
||||
///
|
||||
/// * this template file can be in binary format (e.g. image)
|
||||
#[arg(long)]
|
||||
pub template_internal_server_error: Option<String>,
|
||||
|
||||
/// Absolute path to the `Not found` template file
|
||||
///
|
||||
/// * this template file can be in binary format (e.g. image)
|
||||
#[arg(long)]
|
||||
pub template_not_found: Option<String>,
|
||||
|
||||
/// Absolute path to the `Welcome` template file.
|
||||
/// Unlike `template_index`, this applies only to the `public` location
|
||||
/// Unlike `template-index`, this applies only to the `public` location
|
||||
///
|
||||
/// * this template file expects pattern and cannot be in binary format
|
||||
///
|
||||
/// **Patterns**
|
||||
/// * `{list}` - entries list for the `public` directory
|
||||
|
|
@ -49,6 +57,8 @@ pub struct Config {
|
|||
|
||||
/// Absolute path to the `Index` template file for each directory
|
||||
///
|
||||
/// * this template file expects pattern and cannot be in binary format
|
||||
///
|
||||
/// **Patterns**
|
||||
/// * `{list}` - entries list for the current directory
|
||||
#[arg(long)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue