Current Projects

Recent Posts
stencet v0.1.16
release
01 April 2013
rikitiki v0.1.67
release
01 April 2013
Working with tuples part II
blog
27 March 2013
stencet v0.0.6
release
24 March 2013

All Posts...

Documentation | Download | Report a Bug | Discussion

About

rikitiki is a project aimed at adding developer convenience to writing web server modules.

It provides integration into mongoose and apache, and contains easy to configure and use routing functionality. Optionally, it includes support for the ctemplates library as a templating engine.

Features

Current Features:

Upcoming Features for v0.2:

Example

#include <rikitiki/rikitiki.h>
#include <rikitiki/mongoose/server.h>

struct HelloWorldModule {
  void Register(Server& server){
    server.AddHandler( CreateRoute<>::With(this, "/hw/hello") );
    server.AddHandler( CreateRoute<int>::With(this, "/hw/{number}") );
    server.AddHandler( CreateRoute<std::string>::With(this, "/hw/{word}") );
  }

  void operator()(ConnContext& ctx){
    ctx << "Hello world!";
  }

  void operator()(ConnContext& ctx, int number){
    ctx << "Number: " << number;
  }

  void operator()(ConnContext& ctx, const std::string& word){
    ctx << "Word: " << word;
  }
};

int main(){
  MongooseServer server(5000);
  HelloWorldModule module;
  server.Register(module);
  server.Start();
  while(true){
    sleep(1000);
  }
  return 0;
}
		       

See all examples