Thread tagged as: Question

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.


Jarl Robert Kristiansen

Jarl Robert Kristiansen 0 points

  • 7 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Perch templates are HTML only, however you can pass variables into them.