Template Syntax Reference
Page template markup that generates and transforms dynamic page content alongside static content and enables template reuse.
Square Online page templates can contain template markup and calls to the Site Theme SDK or Client APIs, along with HTML, CSS, and JavaScript. Page templates support most core Twig tags, filters, and functions, as well as custom Square Online extensions.
Square also provides the following script dependencies:
forms_script
- Used with the form tag.customer_accounts_script
- Used with the customer_accounts_login tag.
Square Online page templates support the Twig template language (version 3.x). For your convenience, excerpts of documentation for supported Twig syntax are provided under the BSD 3-Clause “New” or “Revised” License. Copyright © 2009-present by the Twig Team.