Module

CLON file branch as a Service

What it does

Loads and parses a CLON file and puts one of its branches available as a Service. Using the Return Service within the loaded CLON file, the Module may be extended with branches.

How it works

Calling file

{
    instances = {
        // Snippet from AGWiki
        standalone = Template(f"templates/skelet.html") {
            content_branch = Module(f"login/auth.conf@enticate") {

                authenticated_branch = Template(f"loggedin.html");
                unauthenticated_branch = Template(f"unloggedin.html");
            };
        };
    };
}

Called file

{
    instances = {
        // Snippet from AGWiki
        enticate = Module(f"session.conf@ize") {
            ized_branch = MySqlQuerier(
                f"queries/GetSessionLogin.sql",
                params = ["session"], credset = "login"
            ) {
                none_branch = Return("unauthenticated") {
                    default_branch = Template(f"loggedout");
                };
                single_branch = Return("authenticated");
            };
        };
    };
}

Settings

(default) string filesystempath@branch
file string filesystempath
branch string branch name in module file

Branches

branchname specified by Return-Services Control will flow into this branch if the Return-Service in the CLON file is hit