AppsΒΆ

Reblocks sites contains one or more apps. Where each app is responsible for serving requests starting from some prefix.

For example, your site can have a few apps mounted to /, /shop/, /blog/ and /admin/ prefixes.

The simplest way to define a new app is to use defapp macro like this:

(defapp blog
  :prefix "/blog/")

And then to define a method for reblocks/session:init generic-function. It will be called if user will open https://yoursite.com/blog/ in his browser.

API