Class Index | File Index

Classes


Namespace Crayon.Tag

Holds functionality for escaping charactors.
Defined in: tag.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static>  
Crayon.Tag.content_tag(name, content, Object, Boolean)
Retrurns a tag string.
<static>  
Crayon.Tag.tag(name, Object, Boolean, Boolean)
Retrurns a tag string.
Namespace Detail
Crayon.Tag
Requires:
crayon/lib/core.js
crayon/lib/escape.js
Method Detail
<static> Crayon.Tag.content_tag(name, content, Object, Boolean)
Retrurns a tag string.
Parameters:
{String} name
a tag name such as "p".
{String or Function} content
The text inserted into the tag. If a function is passed, the returned value is inserted.
Object Optional
options kev-value pairs for the tag attributes. The default is {}.
Boolean Optional
escape if true, the special chars in tag attributes specified by options is escaped.

<static> Crayon.Tag.tag(name, Object, Boolean, Boolean)
Retrurns a tag string.
Parameters:
{String} name
a tag name such as "p".
Object Optional
options kev-value pairs for the tag attributes. The default is {}.
Boolean Optional
open if true, the closer is excluded. The default is fasle.
Boolean Optional
escape if true, the special chars in tag attributes specified by options is escaped.

Documentation generated by JsDoc Toolkit 2.3.0 on Sat Dec 05 2009 00:01:29 GMT+0900 (JST)