croxton / Stash

Stash allows you to stash text and snippets of code for reuse throughout your templates.
GNU General Public License v3.0
197 stars 20 forks source link

Is it possible to execute php in stash templates? #167

Closed DanieleGBX closed 4 years ago

DanieleGBX commented 4 years ago

As per question, Is it possible to execute php in stash templates?

If it isn't, what would it take to alter the code so it does?

I may or may not be desperate.

croxton commented 4 years ago

You could run php on the root template (which will be just be an EE template) but not inside any Stash template that you have embedded. If you really need to do something specific with PHP a simple plugin is a better idea.