renderSettings

Generates a HTML form for a configuration struct T with automatic instant updates using AJAX. The fields can be annotated with the various UDAs found in this module. (setting enums + structs)
Supported types: enum (drop down lists or radio box lists), std.typecons.BitFlags (checkbox lists), bool (checkbox), string types (text, email, url, etc.), numeric types (number), std.datetime.DateTime (datetime-local), std.datetime.Date (date), std.datetime.TimeOfDay (time), vibe.inet.URL (url)

  1. string renderSettings(T value, string formAttributes, string action, string method, string jsAction)
    @safe
    string
    renderSettings
    (
    T
    InputGenerator = DefaultInputGenerator
    )
    (,
    string formAttributes = ""
    ,
    string action = "/settings"
    ,
    string method = "POST"
    ,
    string jsAction = "/api/setting"
    )
  2. string renderSettings(T value, ulong set, string formAttributes, string action, string method, string jsAction)

Meta