Package ortus.boxlang.web.components
Class HtmlHead
java.lang.Object
ortus.boxlang.runtime.components.Component
ortus.boxlang.web.components.HtmlHead
@BoxComponent
public class HtmlHead
extends ortus.boxlang.runtime.components.Component
-
Nested Class Summary
Nested classes/interfaces inherited from class ortus.boxlang.runtime.components.Component
ortus.boxlang.runtime.components.Component.BodyResult, ortus.boxlang.runtime.components.Component.ComponentBody
-
Field Summary
Fields inherited from class ortus.boxlang.runtime.components.Component
componentService, declaredAttributes, DEFAULT_RETURN, functionService, interceptorService, name, runtime
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionortus.boxlang.runtime.components.Component.BodyResult
_invoke
(ortus.boxlang.runtime.context.IBoxContext context, ortus.boxlang.runtime.types.IStruct attributes, ortus.boxlang.runtime.components.Component.ComponentBody body, ortus.boxlang.runtime.types.IStruct executionState) Writes text to the head section of a generated HTML page.Methods inherited from class ortus.boxlang.runtime.components.Component
announce, getDeclaredAttributes, getName, invoke, processBody, processBody, setName, validateAttributes
-
Constructor Details
-
HtmlHead
public HtmlHead()
-
-
Method Details
-
_invoke
public ortus.boxlang.runtime.components.Component.BodyResult _invoke(ortus.boxlang.runtime.context.IBoxContext context, ortus.boxlang.runtime.types.IStruct attributes, ortus.boxlang.runtime.components.Component.ComponentBody body, ortus.boxlang.runtime.types.IStruct executionState) 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.components.Component
- Parameters:
context
- The context in which the Component is being invokedattributes
- The attributes to the Componentbody
- The body of the ComponentexecutionState
- The execution state of the Component
-