Using Liquid in Power Pages – Step by Step guide
Using Liquid in Power Pages – Step by Step
Learn how to add a simple Liquid expression to a Power Pages site.
Example Used
The following Liquid expression displays the current time dynamically whenever the page is loaded.
Steps to Add This Liquid Example in Power Pages
When the page loads, Power Pages evaluates the Liquid expression on the server and replaces it with the current time before sending the HTML to the browser.
Why This Works
Liquid is processed on the server side in Power Pages. The now keyword represents the current date and time, while the date filter formats the output.
This makes Liquid ideal for displaying dynamic information such as timestamps, greetings, or time-based messages without using JavaScript.
Summary
This simple example demonstrates how easy it is to use Liquid in Power Pages. By adding a single line of Liquid code, you can dynamically display server-generated content on your site.
Comments
Post a Comment