2

Is there a way to make all templates automatically private? Or do I really have to put an _ before every single one?

1 Answer 1

5

Your templates will be private if they are contained in a folder prefixed with a "_"... So just make a folder like that, and put everything else inside of it:

/craft/templates/_everything/myprivatefile.html
1
  • Ahh nice, didn't know this also works for folders :) Thank you! Jan 19, 2015 at 7:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.