# HG changeset patch # User jbe # Date 1503316208 -7200 # Node ID a46e65880d8bae64947943c6f0668ee7247e48a9 # Parent 297bedede137edcbc443b0404e25a6c99961035f Minor fixes in documentation diff -r 297bedede137 -r a46e65880d8b doc/autodoc-header.htmlpart --- a/doc/autodoc-header.htmlpart Mon Aug 21 13:15:05 2017 +0200 +++ b/doc/autodoc-header.htmlpart Mon Aug 21 13:50:08 2017 +0200 @@ -95,7 +95,7 @@

Installation

- After downloading the tar.gz package, unpack it, enter the unpacked directory and type make. If you use Mac OS X or if you experience problems during compilation, you need to edit the Makefile.options file prior to compilation. The framework itself will be available in the framework/ directory, while a demo application is available in the demo-app/ directory. The framework.precompiled/ and demo-app.precompiled/ directories will contain a version with all Lua files being byte-code pre-compiled, which can be used instead. You may copy these directories (with cp -L to follow links) to any other place you like. Don't forget to setup a database, and make the tmp/ directory of the application writable for user who executes WebMCP. Good luck and have fun! + After downloading the tar.gz package, unpack it, enter the unpacked directory and type make. If you use Mac OS X or if you experience problems during compilation, you need to edit the Makefile.options file prior to compilation. The framework itself will be available in the framework/ directory, while a demo application is available in the demo-app/ directory. The framework.precompiled/ and demo-app.precompiled/ directories will contain a version with all Lua files being byte-code pre-compiled, which can be used instead. You may copy these directories (with cp -L to follow links) to any other place you like. Don't forget to setup a database, and make the tmp/ directory of the application writable for the user who executes WebMCP. Good luck and have fun!

Configuration, initializers, and request handling

@@ -219,7 +219,7 @@ function mondelefant.class_prototype:get_db_conn() return db end execute.inner()

- The parameters for mondelefant.connect are directly passed to PostgreSQL's client library libpq. See PostgreSQL's documentation on PQconnect for information about supported parameters. + The parameters for mondelefant.connect are directly passed to PostgreSQL's client library libpq. See PostgreSQL's documentation for information about supported parameters.

To define a model to be used within a WebMCP application, create a file named with the name of the model and .lua as extension in the model/ directory of your application. The most basic definition of a model (named “movie” in this example) is: