-sub generate{
- my ($path, $lang) = @_;
- $path = ($path =~ m,ct/(.*)/index,)[0];
- my $template = $templates{$lang};
- my $htc = HTML::Template::Compiled->new(scalarref => \$template);
- flock my $metafh = IO::File->new("<ct/$path/meta.yml"), LOCK_SH;
- my $meta = LoadFile "ct/$path/meta.yml";