Skip to main content

DEFAULT_TEMPLATE_FILES

Constant DEFAULT_TEMPLATE_FILES 

Source
pub const DEFAULT_TEMPLATE_FILES: &[&str];
Expand description

Filenames fetched by default when Engine::create_template_folder is called with an HTTP/S URL and no explicit file list. Matches the historical six-file set for backwards compatibility; callers who need a different layout should use Engine::create_template_folder_with_files.

ยงExamples

use staticweaver::engine::DEFAULT_TEMPLATE_FILES;
assert!(DEFAULT_TEMPLATE_FILES.contains(&"index.html"));