harrydeluxe / php-liquid

A PHP port of Ruby's Liquid Templates
http://www.delacap.com/artikel/Liquid-Templates/
MIT License
239 stars 119 forks source link

Possible to get list of assigned variables from parsed template in PHP? #48

Closed schmoove closed 7 years ago

schmoove commented 7 years ago

Is there currently a best-practice for outputting a list of variables set in the template using {% assign %} in PHP?

I'd like to run parse() and then check if a specific variable has been set in the template before running render()

Thanks!