Templates

Overview

It is common for users to want to use their own custom templates within the Web SDK. To accommodate this we have three different paths depending on your needs. Note each of these options replaces the WebSDK's default templates with your templates.

Custom Template Directory

You can configure the server to automatically import the template files from a custom template directory into the server. You can do this by setting the custom template options in the server configuration file and restarting the server.

See the Server page for information about the server and its configuration file.

Template Import Utility

You can configure the server to use custom templates without automatically importing them. Again, you can do this by setting the appropriate custom template options in the server configuration file and restarting the server.

When you do this, you must use the Template Import Utility to load your templates onto the server.

Template Service

The Template Service is the most flexible option. Although it requires more development time, it allows you more control over where templates are stored and how they are exposed to an individual user. For example, you could expose templates based on precinct or any other criteria you may have.