Html.lua: Difference between revisions
No edit summary |
|||
Line 3: | Line 3: | ||
== cookie.set == | |||
'''INPUT:'''<BR> | '''INPUT:'''<BR> | ||
This library required the following inputs/parameters. | This library required the following inputs/parameters. | ||
Line 15: | Line 15: | ||
-- Set variable/Call for this library | -- Set variable/Call for this library | ||
==html_escape == | |||
'''INPUT:'''<BR> | '''INPUT:'''<BR> | ||
This library required the following inputs/parameters. | This library required the following inputs/parameters. | ||
Line 29: | Line 29: | ||
This is > a test < string & | This is > a test < string & | ||
==nv_pair== | |||
'''INPUT:'''<BR> | '''INPUT:'''<BR> | ||
This library required the following inputs/parameters. | This library required the following inputs/parameters. | ||
Line 44: | Line 44: | ||
foo="bar" | foo="bar" | ||
==cfe_unpack == | |||
'''INPUT:'''<BR> | '''INPUT:'''<BR> | ||
This library required the following inputs/parameters. | This library required the following inputs/parameters. |
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) ?>