Useful HTML code.
Adds internal link that says "Back".
Parameters:
a
Editor action. If null, the link will point to default editor page.
Redirects the page to a given internal link.
Parameters:
a
Editor action. If null, the link will point to default editor page.
header (t:String, ?h:String):Void
Outputs HTML page header.
Parameters:
t
Page title.
h
Additional headers, if needed.
img (file:String, w:Int, h:Int, ?rnd:Bool):Void
Outputs image.
Will use the directory specified in files.location
configuration variable as a base.
Parameters:
file
Relative path to the file.
w
Image width. If set to 0, will be unspecified.
h
Image height. If set to 0, will be unspecified.
rnd
If enabled, will add random string to file name.
Outputs string to page with newline inserted after.
Supports output buffering through startBuffer()
/endBuffer()
.
Parameters:
s
String to print.
Outputs string to page.
Supports output buffering through startBuffer()
/endBuffer()
.
Parameters:
s
String to print.
inline quote (s:String):String
Escapes HTML special characters of the string.
Parameters:
s
String.
Returns:
String with escaped special characters.
swf (file:String, w:Int, h:Int, ?isrnd:Bool):Void
Outputs SWF object.
Will use the directory specified in files.location
configuration variable as a base.
Parameters:
file
Relative path to the file.
w
Object width.
h
Object height.
isrnd
If true, will add random number to an object link.
swfFile (fileClean:String, w:Int, h:Int, ?isrnd:Bool):Void
Outputs SWF object with download link and file size on top.
If no file found, will output a string "File not yet uploaded.".
Will use the return value of neko.Web.getCwd())
as a base.
Parameters:
fileClean
Relative path to the file.
w
Object width.
h
Object height.
isrnd
If true, will add random number to an object link.
swfFileShort (fileClean:String, w:Int, h:Int):Void
Outputs SWF object.
If no file found, will output a string "File not yet uploaded.".
Will use the return value of neko.Web.getCwd())
as a base.
Parameters:
fileClean
Relative path to the file.
w
Object width.
h
Object height.