Class tags

Functional HTML tag writing.
Defined in: tags.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
tags()
Functional HTML tag writing.
Method Summary
Method Attributes Method Name and Description
<static>  
tags.importTags(scopeObj, tagArray)
Imports a specified list of tags.
Class Detail
tags()
Functional HTML tag writing.
Method Detail
<static> tags.importTags(scopeObj, tagArray)
Imports a specified list of tags. All HTML tags are automatically imported by default, but you may wish to use the tag library to write other kinds of mark-up. For each tag you want to import, pass in the name (including any punctuation) with the (upper/lower) case you want to use for the function (traditionally all uppercase). The function name will have punctuation replaced with underscores, and the printed tag will be all lowercase.
importTags(this, ["MEDIA:TITLE"]);
print(MEDIA_TITLE({type:"html"}, "funny pictures"));
// prints <media:title type="html">funny pictures</media:title>
Parameters:
{object} scopeObj
where to define the tags; to define in the global scope, pass this from the top level (not from inside a function)
{array} tagArray
an array of strings, the tags to import

©2011 by JGate on AppJet
Documentation generated by JsDoc Toolkit 2.1.0 on Thu Jan 06 2011 10:36:33 GMT+0100 (MEZ)