semitwistWeb.form

Written in the D programming language.

Members

Aliases

Mustache
alias Mustache = mustacheLib.MustacheEngine!string
Undocumented in source.

Classes

FormSubmission
class FormSubmission
Undocumented in source.

Enums

FieldError
enum FieldError
Undocumented in source.
FormElementOptional
enum FormElementOptional
Undocumented in source.
FormElementType
enum FormElementType
Undocumented in source.

Functions

addFormContext
void addFormContext(Mustache.Context c, FormSubmission[string] sessSubmissions, string[] formNames)
Undocumented in source. Be warned that the author may not have intended to support it.
addFormContext
void addFormContext(Mustache.Context c, FormSubmission[string] sessSubmissions, string formName)
Undocumented in source. Be warned that the author may not have intended to support it.
clearOtherForms
void clearOtherForms(FormSubmission[string] submissions, string currUrl, string formToKeep)

formToKeep: For example, if formToKeep is "purchase", then submissions["purchase"] will not be cleared, but the rest will. If formsToKeep is null or empty string, then all will be cleared.

clearOtherForms
void clearOtherForms(FormSubmission[string] submissions, string currUrl, string[] formsToKeep)

formsToKeep: For example, if formsToKeep is ["purchase", "foobar"], then submissions["purchase"] and submissions["foobar"] will not be cleared, but the rest will. If formsToKeep is empty, then all will be cleared.

makeErrorMessage
string makeErrorMessage(FormSubmission submission)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

isClear
bool isClear [@property getter]

Handles null safely and correctly

Structs

FormElement
struct FormElement
Undocumented in source.
HtmlForm
struct HtmlForm
Undocumented in source.

Meta