Zephr User Guide

Create Your Component

21 views 0

To display a footer on your site, you must host a footer component and add it to your Zephr Component Library.

In your component code, you must reference the variable that you want to display using a mustache template. For example, if your variable is called meter, your code must contain a {{meter}} reference, as shown in the following extract:

<b><mark>You have read {{meter}} articles</mark><b>

For further information on using mustache variables in your component templates, see the User Variables in Component Templates topic.

You must remember to make a note of the name of the variable that you use in your component, as we use this when we create our sub rule.

When you have created and hosted your component, add it to your Zephr Component Library.

For further information on using the Component Library, see the Component Library section.