tagg_config
Types
This stores Text/Tag sections with contextual values that are used to help render the final HTML.
pub type Sections =
Result(List(Section), TaggError)
Dict of
pub type TagConfig =
Dict(String, fn(Tagg, Section, Context) -> Sections)
Configuration for the templating engine. The base_dir_path is used to resolve paths (e.g. “/employees/employee.html”) that appear in the template. The TagConfig is used to help find custom tags and replace them with custom sections in the HTML.
pub type Tagg {
Tagg(base_dir_path: String, tag_config: TagConfig)
}
Constructors
-
Tagg(base_dir_path: String, tag_config: TagConfig)