Function template_for_path
Source pub fn template_for_path<S>(path: impl AsRef<Path>) -> ConfigResult<String>
Expand description
Renders the default template for one path.
The template format is inferred from the path extension.
§Type Parameters
S: Config schema type used to render the template.
§Arguments
path: Output path whose extension selects the template format.
§Returns
Returns the generated template content.