Part of the interface for Phlex views is that they define an instance method for the template. The template method is called when rendering a view to determine the output. For example, this view has a template method that renders an <h1> tag with the content “Hello”.
Magic template methods
Magic template methods
Magic template methods
Part of the interface for Phlex views is that they define an instance method for the template. The template method is called when rendering a view to determine the output. For example, this view has a template method that renders an <h1> tag with the content “Hello”.