Documentation ¶
Index ¶
Constants ¶
View Source
const VersionString = "SimpleForm 0.2.0"
VersionString is the current name and version of this package
Variables ¶
View Source
var ( // MultilineColumns is the number of columns that multiline input text should have MultilineColumns = 80 // MultilineRows is the number of rows that multiline input text should have MultilineRows = 25 )
Functions ¶
func HTML ¶
HTML transforms the contents of a .frm file to a HTML form
Example use:
Return a full HTML document: HTML(frmContents, true, "en", "/style.css, "/favicon.ico") Return just the body of the HTML document, using the default values of the rest: HTML(frmContents, false) Return HTML styled by MPV.CSS: HTML(frmContents, true, "en", "https://unpkg.com/mvp.css")
If entireDocument is true, doctype + html + head + body is returned, and not just the body contents.
The optional parameter can be from 0 to 3 strings with: - The language of the document, default is "en" - The CSS URL of the document, no default, example: "/css/style.css" - The favicon URL of the document, no default, example: "/img/favicon.ico"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.