Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Using Smarty compiled text in a "cached" file

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development
View previous topic :: View next topic  
Author Message
Jeremy-
Smarty Rookie


Joined: 11 Feb 2005
Posts: 16

PostPosted: Sun May 22, 2005 8:21 pm    Post subject: Using Smarty compiled text in a "cached" file Reply with quote

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
View user's profile Send private message
Jeremy-
Smarty Rookie


Joined: 11 Feb 2005
Posts: 16

PostPosted: Mon May 23, 2005 2:54 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP