thoughtco / statamic-cache-tracker

12 stars 2 forks source link

Handle `Form` instances when tracking forms tag #7

Closed duncanmcclean closed 4 months ago

duncanmcclean commented 4 months ago

This pull request fixes an issue I just found where the Cache Tracker wasn't expecting Form instances to be passed into the form tag's in parameter.

For example, this syntax causes an error:

{{ form:create :in="registration_form" }}

Whereas, this syntax would work:

{{ form:create :in="registration_form:handle" }}
ryanmitchell commented 4 months ago

Thank you!