Pages
Table of contents

Variable tags

You can add tags in your HTML template to make your content editable in your custom dashboard. For example:

<html>
  <head>
    <base href="{{PAGE_URL}}">
    <title>{{title}}</title>  
  </head>
  <body>
    <div data-arengu-form-id="{{form}}"></div>
  </body>
<html>

The {{title}} and {{form}} tags tell Arengu that you'd like to place dynamic content there. So once you upload your template, Arengu will detect those variables and allow you to map them to different field types you would like to add there (eg. Text, HTML, Image, Form, etc). You can have as many tag variables as you like, you just need to enclose any variable with two curly braces.

Supported variable types

Currently supported field types are: Text, Form, Image, HTML and URL. Except HTML field type, all variables are escaped by default.

Internal variables

There are also internal variable tags like {{PAGE_URL}} that will be automatically replaced once you deploy your page. For example:

<html>
  <head>
    <base href="{{PAGE_URL}}">
    <title>{{title}}</title>  
    <meta property="og:url" content="{{PAGE_URL}}" />
  </head>
  <body>
    <div data-arengu-form-id="{{form}}"></div>
  </body>
<html>

For example, if you deploy a page with slug foo-bar under the https://www.acme.com domain, it will be replaced by:

<meta property="og:url" content="https://www.acme.com/foo-bar/" />