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

Embedding an empty file outputs unparsed placeholder #106

Closed michaelrog closed 10 years ago

michaelrog commented 10 years ago

When I embed an empty Stash embed file, I get what appears to be an unparsed placeholder...

Template code: {stash:embed file_name="sub1:sub2:file"}

Rendered output: {415835877634b08a57bb156252fd69e31705759814}

(Stash 2.5.3, EE 2.7.3, PHP 5.4)

croxton commented 10 years ago

Hi Michael

I'm not able to reproduce that. Has the Stash extension been activated?

michaelrog commented 10 years ago

Yes, the extension is active. It works perfectly normally once I put contents into the Stash template file... the placeholder only appears if the Stash template file is empty.

croxton commented 10 years ago

Can't reproduce this in my testing. It could be that another extension is erroneously ending processing of the template_post_parse hook before Stash has a chance to replace the placeholder. What other extensions are you running on that hook? If you could also provide the code that you are using I will recreate here and try to reproduce.