---
name: "Jifty::View::Mason::Halo"
section: "3pm"
platform: "linux"
package: "libjifty-perl"
version: "1.10518+dfsg-2"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/Jifty::View::Mason::Halo"
---

# Jifty::View::Mason::Halo(3pm)

Class for drawing "halos" around page components

## NAME

Jifty::View::Mason::Halo - Class for drawing "halos" around page components

## DESCRIPTION

### start\_component\_hook CONTEXT\_OBJECT

Whenever we start to render a component, check to see if we can draw a halo around the component.

Either way, record halo metadata.

### end\_component\_hook CONTEXT\_OBJECT

When we're done rendering a component, record how long it took and close off the halo `"span"` if we have one.

### \_unrendered\_component CONTEXT

Returns true if we're not currently inside the "Body" section of the webpage OR the current component is a subcomponent. (Rendering halos for subcomponents being too "heavy")

### render\_component\_tree

Once we're just about to finish rendering our HTML page (just before the `"</body"`\> tag, we should call render\_component\_tree to output all the halo data and metadata.
