aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/default_paths.org
diff options
context:
space:
mode:
Diffstat (limited to 'org/default_paths.org')
-rw-r--r--org/default_paths.org33
1 files changed, 33 insertions, 0 deletions
diff --git a/org/default_paths.org b/org/default_paths.org
index ddf9bfe..7dfef88 100644
--- a/org/default_paths.org
+++ b/org/default_paths.org
@@ -100,6 +100,7 @@ import sdp.meta.rgx;
<<template_paths_out>>
<<template_paths_html>>
<<template_paths_epub>>
+<<template_paths_sqlite>>
#+END_SRC
** _sisupod_ (output bundled source) :sisupod:
@@ -442,3 +443,35 @@ template SiSUpathsEPUB() {
}
}
#+END_SRC
+
+** _sqlite_ :sqlite:
+
+#+name: template_paths_sqlite
+#+BEGIN_SRC d
+template SiSUpathsSQLite() {
+ mixin SiSUrgxInit;
+ static auto rgx = Rgx();
+ auto SiSUpathsSQLite(Ps,Lng)(
+ Ps src_pth_info,
+ Lng lng,
+ ) {
+ auto out_pth = SiSUoutPaths!()(src_pth_info, lng);
+ string base_dir = "sqlite";
+ struct _PathsStruct {
+ string base_filename(string fn_src) {
+ return fn_src.baseName.stripExtension;
+ }
+ string base() {
+ return (out_pth.output_base).chainPath(base_dir).array;
+ }
+ string seg(string fn_src) {
+ return base.chainPath(base_filename(fn_src)).array;
+ }
+ string sqlite_file(string fn_src) {
+ return base.chainPath(base_filename(fn_src) ~ ".sqlite").array;
+ }
+ }
+ return _PathsStruct();
+ }
+}
+#+END_SRC