Useful HTML code.

Methods

back (?a:String):Void

Adds internal link that says "Back".

Parameters:

a

Editor action. If null, the link will point to default editor page.

endBuffer ():String

Finishes buffering output and returns the resulting string.

Returns:

Resulting string.

footer ():Void

Outputs page footer.

goBack (?a:String):Void

Redirects the page to a given internal link.

Parameters:

a

Editor action. If null, the link will point to default editor page.

inline h1 (s:String):Void

Outputs HTML heading 1.

Parameters:

s

Header string.

inline h2 (s:String):Void

Outputs HTML heading 2.

Parameters:

s

Header string.

inline h3 (s:String):Void

Outputs HTML heading 3.

Parameters:

s

Header string.

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.

link (params:_LinkParams):Void

Outputs internal HTML link.

Parameters:

params

Link parameters.

inline p (s:String):Void

Outputs string to page with newline inserted after. Supports output buffering through startBuffer()/endBuffer().

Parameters:

s

String to print.

inline pnoln (s:String):Void

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.

startBuffer ():Void

Starts buffering output.

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.

inline toggler (id:String):Void

Adds a button to toggle document element visibility.

Parameters:

id

Element ID.