Atom

An atom is a single HTML element with its properties. An atom has a template string and the props that are to be rendered in the template.

Author

Sujal Choudhari <sjlchoudhari.gmail.com>

Hierarchy

  • Atom

Properties

Constructors

Methods

Properties

The template string

props: {
    [key: string]: any;
}

The props that are to be rendered in the template

Type declaration

  • [key: string]: any

Constructors

  • Creates a new Atom

    Parameters

    • template: AtomizerTemplate

      The template string

    • props: {
          [key: string]: any;
      }

      The props that are to be rendered in the template

      • [key: string]: any

    Returns Atom

Methods

  • Get the HTML equivalent of the atom

    Returns

    The rendered template string with the props

    Returns string