unit role Template6::Provider;

has @.include-path;
has %.templates;
has $.ext is rw = 'tt';

submethod BUILD(:@path, *%args) {
    if @path {
        @!include-path.append(@path);
    }
}

method add-path($path) {
    @.include-path.push: $path;
}

method fetch(Str:D $name) {
        ...
}

method store(Str:D $name, $template) {
    %.templates{$name} = $template;
}

# vim: expandtab shiftwidth=4
