svn commit: r1928575 - in apr/site/trunk/xdocs: coverage stylesheets

[email protected]
Newsgroups gmane.comp.apache.apr.cvs
Message-ID <175815178316.3288244.3342280092371626578@svn02-us-east.apache.org>
Author: brane
Date: Wed Sep 17 23:29:42 2025
New Revision: 1928575

Log:
Create am <ssincliude/> pseudo-element that generates server-side
include directives.

Modified:
   apr/site/trunk/xdocs/coverage/index.xml
   apr/site/trunk/xdocs/stylesheets/site.vsl

Modified: apr/site/trunk/xdocs/coverage/index.xml
==============================================================================
--- apr/site/trunk/xdocs/coverage/index.xml	Wed Sep 17 22:44:46 2025	(r1928574)
+++ apr/site/trunk/xdocs/coverage/index.xml	Wed Sep 17 23:29:42 2025	(r1928575)
@@ -26,7 +26,7 @@ make gcov
 <code>testall</code> script, but all tests should be moving to the
 unified framework, so this is correct.</p>
 
-<p>Manually restore the SSI include directive &lt;!--#include virtual="/coverage/coverage.part.html"--> before committing!</p>
+<ssinclude src="/coverage/coverage.part.html"/>
 </section>
 </body>
 </document>

Modified: apr/site/trunk/xdocs/stylesheets/site.vsl
==============================================================================
--- apr/site/trunk/xdocs/stylesheets/site.vsl	Wed Sep 17 22:44:46 2025	(r1928574)
+++ apr/site/trunk/xdocs/stylesheets/site.vsl	Wed Sep 17 23:29:42 2025	(r1928575)
@@ -17,6 +17,12 @@
 #end
 ##
 ##
+#macro (ssinclude $src)
+#set ($include = '#include')
+<!--$include virtual="$src" -->
+#end
+##
+##
 #macro ( section $section $level )
 #if ($section.getChild("title"))
 #set ($heading = $section.getChildText("title"))
@@ -46,9 +52,13 @@
 #elseif ($items.getName().equals("title"))
 ## we already handled this one
 #else
+#if ($items.getName().equals("ssinclude"))
+#ssinclude($items.getAttributeValue("src"))
+#else
 $items
 #end
 #end
+#end
   </blockquote>
 #if ($level == 1)
 </div>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.