Number Templating

The Number field allows content writers to enter or select a number. You can set max and min values for the number.

Usage

Here’s an example of how to integrate a Number field into your template.

  • ejs
  • pug
  • pug (API v1)
Copy
<h3 class="price">$<%= document.data.price %></h3>
Copy
h3.price $!{ document.data.price }
Copy
h3.price $!{ document.getNumber('product.price') }