Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: CVS

svn commit: r1331240 - in /httpd/httpd/trunk/docs/manual/mod: mod_lua.html.en mod_lua.xml

 

 

Apache cvs RSS feed   Index | Next | Previous | View Threaded


humbedooh at apache

Apr 26, 2012, 11:28 PM

Post #1 of 1 (29 views)
Permalink
svn commit: r1331240 - in /httpd/httpd/trunk/docs/manual/mod: mod_lua.html.en mod_lua.xml

Author: humbedooh
Date: Fri Apr 27 06:28:03 2012
New Revision: 1331240

URL: http://svn.apache.org/viewvc?rev=1331240&view=rev
Log:
Some final tweaks to the mod_lua doc

Modified:
httpd/httpd/trunk/docs/manual/mod/mod_lua.html.en
httpd/httpd/trunk/docs/manual/mod/mod_lua.xml

Modified: httpd/httpd/trunk/docs/manual/mod/mod_lua.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_lua.html.en?rev=1331240&r1=1331239&r2=1331240&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_lua.html.en (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_lua.html.en Fri Apr 27 06:28:03 2012
@@ -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>

- <div class="example"><p><code>
+ <pre class="prettyprint lang-lua">
+ r:parseargs() -- returns a lua table containing the request's query string arguments
+ </pre>
+
+
+ <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>


Modified: httpd/httpd/trunk/docs/manual/mod/mod_lua.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_lua.xml?rev=1331240&r1=1331239&r2=1331240&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_lua.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_lua.xml Fri Apr 27 06:28:03 2012
@@ -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>
-
- <example>
- r:parsebody() -- parse the request body as a POST and return
- a lua table
- </example>
+ <highlight language="lua">
+ r:parseargs() -- returns a lua table containing the request's query string arguments
+ </highlight>

- <example>
+ <highlight language="lua">
+ r:parsebody() -- parse the request body as a POST and return a lua table
+ </highlight>
+
+ <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>

Apache cvs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.