Html.lua: Difference between revisions
No edit summary |
|||
Line 57: | Line 57: | ||
<?= html.cfe(form) ?> | <?= html.cfe(form) ?> | ||
==form.longtext == | |||
==form.passwd == | |||
==form.hidden== | |||
==form.submit== | |||
==form.action == | |||
==form.file == | |||
==form.image== | |||
==form.select== | |||
==form.checkbox== | |||
==form.start== | |||
==form.stop== |
Revision as of 18:18, 30 November 2007
html.lua
This is used in the View section of the Model-Controller-View.
cookie.set
INPUT:
This library required the following inputs/parameters.
- name
- value
- path
OUTPUT:
This library deliverers the following output/parameters.
- String to set the cookie
CODING EXAMPLE:
-- Set variable/Call for this library
html_escape
INPUT:
This library required the following inputs/parameters.
- text-string
OUTPUT:
This library deliverers the following output/parameters.
- String with &,>,< signs encoded
CODING EXAMPLE:
-- Set variable/Call for this library bobo = require "html" format = bobo.html_escape("This is > a test < string &") print(format)
This is > a test < string &
nv_pair
INPUT:
This library required the following inputs/parameters.
- name
- value
OUTPUT:
This library deliverers the following output/parameters.
- name="value"
CODING EXAMPLE:
-- Set variable/Call for this library bobo = require "html" format = bobo.nv_pair("foo", "bar") print(format) foo="bar"
cfe_unpack
INPUT:
This library required the following inputs/parameters.
- Give a cfe table
OUTPUT:
This library deliverers the following output/parameters.
- String with the whole cfe table
CODING EXAMPLE:
-- Set variable/Call for this library --haserl code below. Used in views in ACF <? require "html ?>
<?= html.cfe(form) ?>