Topic: Hooks replacing pun_include???

Just curious. In 1.3, are hooks replacing pun_include?

Re: Hooks replacing pun_include???

I don't think we made a decision, but I have thought about it before. Can you think of any reason they shouldn't?

Re: Hooks replacing pun_include???

No. We won't be using pun_include to avoid touching core file(s).

Re: Hooks replacing pun_include???

Well, potentially you could, since styles can have their own templates. The question is whether it's better to just let extensions take over, since they're more flexible.

Re: Hooks replacing pun_include???

Smartys wrote:

The question is whether it's better to just let extensions take over, since they're more flexible.

That too smile . Plus with extensions there is a central place where custom modifications are kept.

Re: Hooks replacing pun_include???

I spoke too soon. smile It is easier to add a custom script (banner advertising) using pun_include between <!-- pun_stats --> and <!-- pun_about -->, and above <!-- pun_stats --> than using hooks.

Re: Hooks replacing pun_include???

That's more of an issue of hook placement than anything else. We just need to put a hook before we echo out anything in each section. It's something that would need to be addressed anyway.