You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 20, 2026. It is now read-only.
lkhoward edited this page Mar 11, 2016
·
5 revisions
Partials are simply Pages. They are created under the partialsdirectory.
The idea is that partials will be used to keep you code DRY by defining locators that are common to multiple pages. They could also be used to break complex pages into more manageable components.
The syntax for defining a partial is exactly like a page:
The framework will dynamically generate a method (in the case named header) that will return an instance of the partial.
NOTE: Huzzah only uses the class (page) name to define the method for the partial. It ignores the module (site) name altogether. In fact, the module name of the partial does not need to match the module name of the page.