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
    Constructor
    Description
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    _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
    addToHead(ortus.boxlang.runtime.context.IBoxContext context, String text)
    Adds the `text` content to the head section of an HTML page.

    Methods inherited from class ortus.boxlang.runtime.bifs.BIF

    announce, getDeclaredArguments, invoke

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 class ortus.boxlang.runtime.bifs.BIF
      Parameters:
      context - The context in which the BIF is being invoked.
      arguments - Argument scope for the BIF.
    • addToHead

      public static void addToHead(ortus.boxlang.runtime.context.IBoxContext context, String text)
      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.