|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Jeremy- Smarty Rookie
Joined: 11 Feb 2005 Posts: 16
|
Posted: Sun May 22, 2005 8:21 pm Post subject: Using Smarty compiled text in a "cached" file |
|
|
I've developed a new cache method for Smarty that allows me to combine all the included templates for a wrapper script and write a new cached file for the wrapper (saves having to cache a template for calls to Javascript, CSS, Meta data, etc..., just makes it all one file)
But now, what I'd like to do is when I have a {section} or any other dynamic content, instead of leaving it as {section} {/section} in my cached file, I'd like to use the actual compiled data. I've got that writing to the file just fine, but which Smarty function will I need to use (or edit...or base a new function off of) to render that content like normal. At the moment I actually see the compiled data when I view the page, instead of it rendering. |
|
Back to top |
|
Jeremy- Smarty Rookie
Joined: 11 Feb 2005 Posts: 16
|
Posted: Mon May 23, 2005 2:54 am Post subject: |
|
|
Nevermind...I'm just crazy. Can't believe I didn't think of writing a NEW .tpl file and allowing Smarty to compile and use it. Geesh... All fixed now. Haha. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|