Write

Like a Template, but simpler.

What it does

Writes a pre-configured text string to the nearest OutgoingInteraction, optionally formatting a single value from an earlier interaction, into it, using C#'s string.Format

How it works

{
    plugins = ["BasicHttpServer.dll",
        "Duckling.dll",
        "Networking.dll",
        "OutputComposing.dll",
        "Navigation.dll"];

    instances = {
        anyrandomname = HttpService(
            prefixes = ["http://*:8080/"]
        ) {
            http_branch = SiteSubsection() {
                default_branch = Write(
                    "I like trains, \{0\}", 
                    variablename = "branchname");
            };
        };
    };

Settings

default"format {0} string"The piece of text that will be written to the nearest OutgoingInteraction, with its numbered placeholders replaced.