Skip to main content

Module template

Module template 

Source
Expand description

Path templates.

A template such as ~/projects/aoc/{{year}}/day{{pad day}}/{{language}} is parsed once into Segments and then used in both directions: rendered into a project path, and compiled into a regex that recovers the parameters from the current working directory.

Modules§

matcher
Recovering template parameters from the current working directory.

Structs§

Params
The values substituted into a template.
Template
A parsed path template.

Enums§

Segment
One piece of a parsed template.
TemplateError
Errors produced while parsing or compiling a template.