Spanish Total.js
English
Documentation For AI agents
Contents

OpenTemplates 1.0

Keep the HTML templates of your invoices, contracts and letters in one place, and let your apps render them through a REST API.

Getting started

  • Introduction

    What OpenTemplates is, what it does and where to start.

  • Install from source

    Install OpenTemplates with Node.js and start it on your computer or server.

  • First start

    Open the interface for the first time and protect it with a primary access token.

Templates

  • Profiles

    Create, edit, clone and remove the profiles that group your templates.

    Reference
  • Layouts

    Edit the HTML page that wraps every template of a profile.

  • Templates

    Create, group, clone and remove the templates of a profile.

  • Edit a template

    Write the HTML of a template with a live preview.

  • Template syntax

    Write values, conditions, loops, a sample model and helpers in a template.

  • Images and files

    Upload a logo or another file and use it in your templates.

  • Export and import

    Move profiles and templates between servers as JSON files.

Administration

  • API tokens

    Create a token for each app that renders templates, and change it when you need to.

  • Configuration

    Set the name of the app, the primary access token and the Total.js API token.

  • Logs

    See which templates your apps rendered and when.

  • Back up your data

    Copy the data folder to keep your templates, tokens and settings safe.

  • Run in production

    Settings and habits that keep an OpenTemplates server safe.

REST API

  • REST API overview

    The endpoints your apps call and how to send the token.

  • Render a template

    Send data to a template and get the finished document back.

  • Errors

    The errors the REST API returns and what to do about them.

Configuration

Recipes

FAQ

  • Tokens and access

    Questions about the primary access token and the API tokens.

  • Templates

    Questions about writing and calling templates.

Made in Europe