Unstack for Developers
  • Overview
  • Getting started
    • Custom Themes
    • Custom Components
  • Component Types
    • Section
    • Header & Footer
    • Banner
  • Basic Tags
    • Actions
    • Box
    • Code
    • Element
    • Media
    • Plaintext
    • Richtext
    • Collection
    • Article Collection
  • eCommerce Tags
    • Product
    • Product Inventory
    • Product Price
    • Product Options
    • Quantity Selector
    • Cart & Drawer (soon)
  • Utility Tags
    • Generator
    • JSONParser
  • Other NoML Features
    • Variables
    • Raw HTML
    • Component Properties
Powered by GitBook
On this page
  1. Other NoML Features

Variables

PreviousJSONParserNextRaw HTML

Last updated 1 year ago

You can reference the value of a system variable using curly brackets like this:

{element}

In practice variable references should never appear on their own, but rather be nested between tags:

<h2>{article.title}</h2>

You can also use inside of curly brackets:

<a href={`/${article.relative_url}`}>Read more</a>
template literals