Package ortus.boxlang.web.bifs
Class HtmlHead
java.lang.Object
ortus.boxlang.runtime.bifs.BIF
ortus.boxlang.web.bifs.HtmlHead
@BoxBIF
public class HtmlHead
extends ortus.boxlang.runtime.bifs.BIF
-
Field Summary
Fields inherited from class ortus.boxlang.runtime.bifs.BIF
__functionName, __isMemberExecution, asyncService, cacheService, componentService, declaredArguments, functionService, interceptorService, moduleService, runtime
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_invoke
(ortus.boxlang.runtime.context.IBoxContext context, ortus.boxlang.runtime.scopes.ArgumentsScope arguments) Writes text to the head section of a generated HTML page.static void
Adds the `text` content to the head section of an HTML page.Methods inherited from class ortus.boxlang.runtime.bifs.BIF
announce, getDeclaredArguments, invoke
-
Constructor Details
-
HtmlHead
public HtmlHead()Constructor
-
-
Method Details
-
_invoke
public Object _invoke(ortus.boxlang.runtime.context.IBoxContext context, ortus.boxlang.runtime.scopes.ArgumentsScope arguments) Writes text to the head section of a generated HTML page. It is useful for embedding JavaScript code, or putting other HTML tags, such as meta, link, title, or base in an HTML page header. If there is no head section in the HTML page, the function will create one.- Specified by:
_invoke
in classortus.boxlang.runtime.bifs.BIF
- Parameters:
context
- The context in which the BIF is being invoked.arguments
- Argument scope for the BIF.
-
addToHead
Adds the `text` content to the head section of an HTML page.- Parameters:
context
- The context in which the BIF is being invoked.text
- Text to add to the head area of an HTML page.
-