CppModule Sample
===

This sample shows how to create an Appweb loadable module in C++. A module may provide an Appweb handler, 
filter, custom configuration directives or any functionality you wish to integrate into Appweb. Appweb modules 
are compiled into shared libraries and are dynamically loaded in response to appweb.conf LoadModule directives. 
If your main program is statically linked, the same module, without change may be included in the main program 
executable link, provided the module entry point is manually invoked from the main program.

Requirements
---
* [Appweb](http://embedthis.com/downloads/appweb/download.ejs)
* [Bit Build Tool](http://embedthis.com/downloads/bit/download.ejs)

To build:
---
    bit

To run:
---
    bit run

You will see trace in the console for the custom directive:

    CustomConfig = color=red

Code:
---
* [server.c](server.c) - Main program
* [cppModule.c](cppModule.c) - Simple module
* [appweb.conf](appweb.conf) - Appweb server configuration file
* [start.bit](start.bit) - Bit build instructions

Documentation:
---
* [Appweb Documentation](http://embedthis.com/products/appweb/doc/index.html)
* [Creating Handlers](http://embedthis.com/products/appweb/doc/guide/appweb/programmers/handlers.html)
* [Creating Modules](http://embedthis.com/products/appweb/doc/guide/appweb/programmers/modules.html)
* [API Library](http://embedthis.com/products/appweb/doc/api/native.html)

See Also:
---
* [simple-module - Simple one-line embedding C API](../simple-module/README.md)
