Html.lua: Difference between revisions
No edit summary |
|||
Line 1: | Line 1: | ||
=== cookie.set === | === cookie.set === | ||
'''INPUT:'''<BR> | '''INPUT:'''<BR> | ||
Line 40: | Line 39: | ||
print(format) | print(format) | ||
foo="bar" | foo="bar" | ||
===cfe_unpack === | |||
'''INPUT:'''<BR> | |||
This library required the following inputs/parameters. | |||
*Give a cfe table | |||
'''OUTPUT:'''<BR> | |||
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) ?> |
Revision as of 16:30, 30 November 2007
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) ?>