aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/io_in/read_config_files.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2022-11-25 22:06:40 -0500
committerRalph Amissah <ralph.amissah@gmail.com>2022-12-23 18:17:41 -0500
commitf6d28b62f0e02b8a88a1832589e203c7a613f45b (patch)
treeb5d6462e45bae998190194784e02b143a83f79a3 /src/doc_reform/io_in/read_config_files.d
parentgitignore & things nix (diff)
regex review, match speed & compile time, ctregex
- improve match time - add interim fontface identifier marker - improve compile time - remove unused regexs - separate out some specialized output matches
Diffstat (limited to 'src/doc_reform/io_in/read_config_files.d')
-rw-r--r--src/doc_reform/io_in/read_config_files.d20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/doc_reform/io_in/read_config_files.d b/src/doc_reform/io_in/read_config_files.d
index 64d548b..a1aa425 100644
--- a/src/doc_reform/io_in/read_config_files.d
+++ b/src/doc_reform/io_in/read_config_files.d
@@ -56,9 +56,11 @@
module doc_reform.io_in.read_config_files;
import
std.file,
- std.path,
+ std.path;
+import
doc_reform.meta,
doc_reform.io_in.paths_source,
+ doc_reform.meta.rgx_files,
doc_reform.meta.rgx;
template readConfigSite() {
@@ -191,13 +193,17 @@ webserv:
static template readConfigDoc() {
import
std.file,
- std.path,
+ std.path;
+ import
doc_reform.meta,
doc_reform.io_in.paths_source,
+ doc_reform.meta.rgx_files,
doc_reform.meta.rgx;
@system final auto readConfigDoc(M,E)(M _manifested, E _env) {
mixin spineRgxIn;
static auto rgx = RgxI();
+ mixin spineRgxFiles;
+ static auto rgx_files = RgxFiles();
string config_file_str;
string conf_filename = "NONE";
auto _conf_file_details = configFilePaths!()(_manifested, _env);
@@ -243,9 +249,12 @@ static template readConfigDoc() {
static template configReadSiteYAML() {
import
std.file,
- std.path,
+ std.path;
+ import
doc_reform.meta,
- doc_reform.io_in.paths_source;
+ doc_reform.io_in.paths_source,
+ doc_reform.meta.rgx_files,
+ doc_reform.meta.rgx;
@safe final YAMLDocument configReadSiteYAML(M,E)(M _manifested, E _env) {
string _configuration = configReadInSiteYAML!()(_manifested, _env);
auto _conf_file_details = configFilePaths!()(_manifested, _env);
@@ -257,7 +266,8 @@ static template configReadSiteYAML() {
static template configReadDocYAML() {
import
std.file,
- std.path,
+ std.path;
+ import
doc_reform.meta,
doc_reform.io_in.paths_source;
@safe final YAMLDocument configReadDocYAML(M,E)(M _manifested, E _env) {