A class that can be used to easily script and render HTML with. A class that can be used to easily render HTML with. An instance of this class could be a traditional web application's View. Some traditional web applications use a templating language to render their final output using a set of variables. Some examples: Blade, Handlebars, Razor, etc. Some of these have features like for loops, ifs, they can even support method calls. Thic class implements similar functinality, albeit in a different manner. The render control logic should be implemented by overriding [method _render], variable substitotions can be done using the available helper methods. Note: For a different approach to generating HTML, you can also take a look at [HTMLBuilder]. Override this method to implement your own rendering for any given HTMLTemplate. Adds a [HTMLTemplateData] template. Clears template defaults. Clears template overrides. Clears templates. Gets a template string using [method get_template] and does variable substitutions on it. Gets a template. Returns the template count. Returns a default template value previously set. Returns an override template value previously set. Returns a template text identified by name. This method first looks into overrides, then it tries to get it from [member templates] (in order), and then it tries default values. Returns whether a template default denoted by name is set. Returns whether a template override denoted by name is set. Removes a template. Removes a template default. Removes a template override. Use this method to render the final output. This calls [method _render]. Helper method that does variable substitutions on a given text. Sets a template default value. Sets a template override value. Helper method that does data variable substitutions on a given text. Helper method that does request variable substitutions on a given text. Returns all template default values. Returns all template override values. Returns all templates.