Using Variables in TRMNL templates using Liquid

I’ve been absolutely loving my TRMNL, it is such a great way to see at a glance what’s coming up! Just getting into using Liquid which is the templating engine for the widget markup. Super fun so far!

I've been messing with variables on my @usetrmnl.com. I have an iOS shortcut triggered by my phone charging and to see when it last run I added this.{% assign pst_time = "now" | date: "%s" | minus: 28800 | date: "%Y-%m-%d %I:%M %p" %}And call it in the template with {{pst_time}}. #liquid

Daniel (@danielgt.com) 2025-02-26T18:40:51.541Z

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *