[RFC|Merged] Template Events
Re: [RFC] Template Events
I'd say get it merged? Further test cases can always be created at a later date?
Formerly known as Unknown Bliss
No unsolicited PMs please except for quotes.psoTFX wrote: I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"
- imkingdavid
- Registered User
- Posts: 1050
- Joined: Thu Jul 30, 2009 12:06 pm
Re: [RFC|Merged] Template Events
Merged.
Re: [RFC|Merged] Template Events
I may once again be looking at this the wrong way but I found something quite curious about template events. Say we have an extension with a template file ext/blitze/foo/styles/all/overall_footer_before.html which of course responds to the overall_footer_before event in the overall_footer.html file.
If my overall_footer_before.html file looks like this:
The resulting page will look like this Notice how the template token is replaced with the language strings but adds a new line (this is true for any token, not just language tokens). I looked at the cached file and it does have the additional newlines as well.
However, if my overall_footer_before.html looks like this: and I add in the extension, ext/blitze/foo/styles/prosilver/template/test.html like so:
This will result in this, which is what you'd expect
If my overall_footer_before.html file looks like this:
Code: Select all
<a href="#">{L_ADD}</a>
<a href="#">{L_EDIT}</a>
Code: Select all
<a href="#">Add
</a>
<a href="#">Edit
</a>
However, if my overall_footer_before.html looks like this:
Code: Select all
<!-- INCLUDE foo.html -->
Code: Select all
<a href="#">{L_ADD}</a>
<a href="#">{L_EDIT}</a>
Code: Select all
<a href="#">Add</a>
<a href="#">Edit</a>