Skip to main content
All CollectionsCustom endpoints
What are endpoints, templates and partials?
What are endpoints, templates and partials?

Overview of endpoints, templates and partials and how you use them.

Jelmer Kok avatar
Written by Jelmer Kok
Updated over a year ago

Warning!

This is a legacy document. The features described below are only usable within the classic generation environment.

Currently, Betty Blocks offers faster and more advanced options that are available in next-gen. So before you start working on this feature in your application, consider doing it using the next-generation page builder capabilities. Good luck!


After reading this article you will know:

  • What endpoints are

  • What templates are

  • What partials are

Endpoints

Endpoints contain the information that is needed to interact with a URL. An endpoint consists of a Template and an Action.

  • Templates can be used to define custom HTML segments

  • Actions can be used to process data.

    Note: Endpoints can also be used as a post or Webservice endpoint.

Where required, you can enable authentication for making a page or action available to authenticated users only.

Templates

You can use templates to create all kinds of content such as HTML based stylesheets, PDF's and javascripts. More details about templates is provided in: Different template types and their use from Endpoints to Stylesheets and Partials?

Partials

Partials are pieces of HTML that can be included in a template using a single line of code. Partials can be used to include, for example, forms, sidebars. These partials can then be reused on different templates.

You can add a partial to a web page using the following code:

{% include 'Partialname' %}

Did this answer your question?