Forum
Can I include PHP in my html template file?
Hi, I am in the process of digesting the necessary information and creating a strategy for how to add Perch to the site I'm working on, and I have a basic question:
Is it possible to have bits of PHP code inside my '.html' template files? Is it possible to have '.php' template files instead of html ones?
Couldn't find this anywhere in the documentation.
Thanks!
Perch templates are HTML only, however you can pass variables into them.
https://docs.grabaperch.com/docs/templates/passing-variables-into-templates/