punch icon indicating copy to clipboard operation
punch copied to clipboard

Punch Plugin: How to find the file path to the "templates" directory?

Open s-oram opened this issue 10 years ago • 2 comments

I'm attempting to write a Punch plugin. How can a plugin find the full directory path to the "templates" directory? I spent some time looking through the source but couldn't find anything useful.

s-oram avatar Feb 09 '15 05:02 s-oram

Did you went through the Customizing Punch section in wiki? https://github.com/laktek/punch/wiki#customizing-punch

Accessing templates path depends on the type of plugin you're writing.

laktek avatar Feb 09 '15 05:02 laktek

I quickly went through the customizing punch section again and still can't see anything in there.

In case it's not clear, I would like to translate "templates" to something like "C:\MyProjects\MyPunchSite\Templates"

s-oram avatar Feb 09 '15 05:02 s-oram