module Wikicr

Defined in:

lib/_init.cr
lib/errors.cr
lib/options.cr
version.cr

Constant Summary

ACL = (Acl::Groups.new("meta/acl")).load!

The list of the permissions (group => path+permission) is stored into the file *meta/acl. Similar behaviour than USERS.

DEFAULT_USER = Wikicr::User.new("guest", "guest", ["guest"] of ::String)

Define a default user that should be used for anonymous clients

OPTIONS = Wikicr::Options.new
PAGES = (Wikicr::Page::Index.new("meta/index")).load!

The list of the pages (index) with a lot of meta-data. Same behaviour than USERS and ACL.

USERS = (Wikicr::Users.new("meta/users", DEFAULT_USER)).load!

The list of the users is stored into meta/users. This file is updated when an user is created/modified/deleted, but the data are stored into RAM for reading.

VERSION = "0.1.1"