# Type alias TemplateInserts

TemplateInserts: {
body?: {
afterStart?: any[];
beforeStart?: any[];
begin?: any[];
end?: any[];
};
head?: {
afterInit?: any[];
begin?: any[];
contextReady?: any[];
end?: any[];
};
}

allow setting template fragments to be inserted into various predefined points in the main template for rendering the HTML

#### Type declaration

- ##### `Optional` body?: {
  afterStart?: any[];
  beforeStart?: any[];
  begin?: any[];
  end?: any[];
  }

  - ##### `Optional` afterStart?: any[]

    insert immediately after the starting subapps code

  - ##### `Optional` beforeStart?: any[]

    insert immediately before the starting subapps code

  - ##### `Optional` begin?: any[]

    insert immediately after

  - ##### `Optional` end?: any[]

    insert immediately before

- ##### `Optional` head?: {
  afterInit?: any[];
  begin?: any[];
  contextReady?: any[];
  end?: any[];
  }

  - ##### `Optional` afterInit?: any[]

    insert immediately after xarc's subapp init scripts

  - ##### `Optional` begin?: any[]

    insert immediately after

  - ##### `Optional` contextReady?: any[]

    insert after context initialized and context.user available

  - ##### `Optional` end?: any[]

    insert immediately before

- Defined in node/types.ts:135