Gear Lens Documentation

Templates: Structure, Placeholders & Management

What is a Template?

A template defines the structure and output format for your results. Templates use {{placeholders}} to dynamically insert data fields. The standard output is always a full JSON object where also all possible placeholders can be seen.

Placeholders

Placeholders are variables wrapped in {{...}} that will be replaced with actual data when generating output. For example, {{name}} or {{gear.gearType}}. You can see a list of available placeholders in the template editor or by viewing existing templates.

Creating & Editing Templates

  • To create a new template, go to Manage > Templates in the app.
  • Your own templates can be edited at any time.

Template Visibility

  • Private: Only visible to you.
  • Organization: Shared with your organization.
  • Public: Available to all users.

Custom Templates for Organizations

Organizations can contact support for individually tailored templates to fit specific requirements.

Example: Row-Based CSV Template

Here is an example of a template using placeholders, based on a CSV format:

name, {{name}}
number, {{number}}
company, {{company}}
material, {{material.material}}
gear.gearName, {{gear.gearName}}
gear.gearType, {{gear.gearType}}
gear.numberOfTeeth, {{gear.numberOfTeeth}}
gear.normalModule, {{gear.normalModule}}

Each {{...}} will be replaced with the corresponding value from your data when the template is used.