aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/out_xmls.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2023-06-26 15:37:43 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2023-06-27 17:12:45 -0400
commit82d94b3ff78285afaa212d6e0a364f59c2938316 (patch)
treefb0b1d801054149419f08091ed4c31e5d559e2c2 /org/out_xmls.org
parentreplace directory listing, blank index.html (diff)
replace some instances of dir listing, index.html
Diffstat (limited to 'org/out_xmls.org')
-rw-r--r--org/out_xmls.org46
1 files changed, 46 insertions, 0 deletions
diff --git a/org/out_xmls.org b/org/out_xmls.org
index febee54..33f2213 100644
--- a/org/out_xmls.org
+++ b/org/out_xmls.org
@@ -23,6 +23,52 @@
2023
#+END_SRC
+* html snippet
+** _module template_ :module:
+
+#+HEADER: :tangle "../src/doc_reform/io_out/html_snippet.d"
+#+HEADER: :noweb yes
+#+BEGIN_SRC d
+<<doc_header_including_copyright_and_license>>
+module doc_reform.io_out.html_snippet;
+template htmlSnippet() {
+ import
+ std.file,
+ std.outbuffer,
+ std.format,
+ std.uri,
+ std.conv : to;
+ import
+ doc_reform.io_out.rgx,
+ doc_reform.meta.rgx_files,
+ doc_reform.io_out.rgx_xhtml;
+ auto format_html_blank_page_guide_home()(
+ string css_style,
+ string home_url,
+ string collection_home_path
+ ) {
+ auto html_blank_default = format(q"┃<!DOCTYPE html>
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/plain; charset=UTF-8" />
+ <link href="%s" rel="stylesheet" />
+ </head>
+ <body>
+ <p class="heading">
+ <a href="%s">⟰&nbsp;</a>&nbsp;
+ <a href="%s">&nbsp;≅&nbsp;</a>
+ </p>
+ </body>
+</html>┃",
+ css_style,
+ home_url,
+ collection_home_path
+ );
+ return html_blank_default;
+ }
+}
+#+END_SRC
+
* xml offspring (xhtml html epub)
** format xhtml objects :format:
*** _module template_ :module: