HTMLHeadQueue & HTMLFootQueue

Mura provides methods that allow you to add a .cfm file to either the head section, or just before the closing body tag of a generated HTML page.

The main purpose of these methods is to reduce duplicate code. For example, if you wish to dynamically add some JavaScript to the head portion of the document, using these methods would only add the script the first time it was added, and any subsequent requests to add the file to the queue would be ignored.

Syntax

<cfscript>
// to add content to the head section of a generated HTML page
$.addToHTMLHeadQueue(
'/path/to/yourFile.cfm'
);
// to add content prior to the closing body tag of a generated HTML page
$.addToHTMLFootQueue(
'/path/to/yourFile.cfm'
);
</cfscript>