Class basicWriter

Index

Constructor methods

Methods

Constructor methods

constructor(): basicWriter

Returns

basicWriter

Methods

public attribute(attName: string, attValue: string)

Parameters

  • attName: string
  • attValue: string

public closeTag(tagName: string)

Parameters

  • tagName: string

public comment(comment: string)

Parameters

  • comment: string

public getHtml(reset: boolean): string

Parameters

  • reset: boolean

Returns

string

public openTag(tagName: string, attributes: Object)

Parameters

  • tagName: string
  • attributes: Object

public openTagClose(tagName: string, isSelfClose: boolean)

Parameters

  • tagName: string
  • isSelfClose: boolean

public reset()

public text(text: string)

Parameters

  • text: string

public write(data: string)

Parameters

  • data: string