Enum reinda_core::template::Fragment
source · pub enum Fragment {
Path(String),
Include(String),
Var(String),
}
Expand description
A parsed template fragment.
Variants§
Path(String)
Inserts the public path of another asset. Example:
{{: path:bundle.js :}}
.
Include(String)
Includes another asset. Example: {{: include:fonts.css :}}
.
Var(String)
Interpolates a runtime variable. Example: {{: var:name :}}
.