WpWodify\Template

Template Class

Synopsis

class Template {
}

Members

protected

  • $script — string
    The script to use for rendering.
  • $vars — array
    A list of variables to store for the script.

Methods

public

  • get_script() — Getter for the script var
  • render() — Run the script.
  • set() — Assigns a variable to the vars attribute, for use in a script.
  • set_script() — Setter for the script var.

History