Live Updates Markup Example
Written By Luke Wakefield
Last updated 6 months ago
Pre-Requisites
- This guide assumes you have a basic familiarity with:
- Building WebApp and Module Layouts on Siteglide using Liquid tags
- HTML, including data-attributes
Using a ready-made SiteBuilder Layout
The quickest way to get started with the SiteBuilder Live Updates API is to install a SiteBuilder layout which already uses it. Look out for the teal 'Live-updates ready' tag on the layouts, install and modify at will.
Having said that, if you want to modify any other layout to start fetching live updates with the API, we'll show how to do that next.
Basic Markup Example
The following markup example would work well in the wrapper.liquid file of a webapp or module layout. The layout and _model variables will then be inherited from the tag used to output the layout in the page.