]> granicus.if.org Git - apache/commitdiff
Some final tweaks to the mod_lua doc
authorDaniel Gruno <humbedooh@apache.org>
Fri, 27 Apr 2012 06:28:03 +0000 (06:28 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Fri, 27 Apr 2012 06:28:03 +0000 (06:28 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1331240 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_lua.html.en
docs/manual/mod/mod_lua.xml

index d89563b1237333b01e86cd690bddd6781e871953..434dd01d98d4f7fa805d7ce9a833bde5abc80d6b 100644 (file)
@@ -369,27 +369,30 @@ end
 
         <p>The request_rec has (at least) the following methods:</p>
 
-        <div class="example"><p><code>
+        <pre class="prettyprint lang-lua">
         r:addoutputfilter(name|function) -- add an output filter
-        </code></p></div>
+        </pre>
 
-        <div class="example"><p><code>
-        r:parseargs() -- returns a lua table containing the request's
-                         query string arguments
-        </code></p></div>
 
-        <div class="example"><p><code>
-        r:parsebody() -- parse the request body as a POST and return
-                         a lua table
-        </code></p></div>
+        <pre class="prettyprint lang-lua">
+        r:parseargs() -- returns a lua table containing the request's query string arguments
+        </pre>
 
-        <div class="example"><p><code>
+
+        <pre class="prettyprint lang-lua">
+        r:parsebody() -- parse the request body as a POST and return  a lua table
+        </pre>
+
+
+        <pre class="prettyprint lang-lua">
         r:puts("hello", " world", "!") -- print to response body
-        </code></p></div>
+        </pre>
 
-        <div class="example"><p><code>
+
+        <pre class="prettyprint lang-lua">
         r:write("a single string") -- print to response body
-        </code></p></div>
+        </pre>
+
         </dd>
     </dl>
 
index 8575e201ffc063ca9c95973233ca65e67b4811b7..1e40678582ec391f04283b29aed1f34b18d4736a 100644 (file)
@@ -332,27 +332,25 @@ end
 
         <p>The request_rec has (at least) the following methods:</p>
 
-        <example>
+        <highlight language="lua">
         r:addoutputfilter(name|function) -- add an output filter
-        </example>
+        </highlight>
 
-        <example>
-        r:parseargs() -- returns a lua table containing the request's
-                         query string arguments
-        </example>
+        <highlight language="lua">
+        r:parseargs() -- returns a lua table containing the request's query string arguments
+        </highlight>
 
-        <example>
-        r:parsebody() -- parse the request body as a POST and return
-                         a lua table
-        </example>
+        <highlight language="lua">
+        r:parsebody() -- parse the request body as a POST and return  a lua table
+        </highlight>
 
-        <example>
+        <highlight language="lua">
         r:puts("hello", " world", "!") -- print to response body
-        </example>
+        </highlight>
 
-        <example>
+        <highlight language="lua">
         r:write("a single string") -- print to response body
-        </example>
+        </highlight>
         </dd>
     </dl>