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

Compile template from string

 
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 -> Tips and Tricks
View previous topic :: View next topic  
Author Message
rzseattle
Smarty Rookie


Joined: 09 Dec 2003
Posts: 7
Location: Poland

PostPosted: Thu Apr 15, 2004 7:37 pm    Post subject: Compile template from string Reply with quote

Hey

Is there a easy way to compile template from string? I've looked for this informaction this forum and manual and no found answer :/ . Manual says abaut template resources but I don't care abaut {include}, I want just to compile string. What can I do to pass $tpl string and take page ?

sorry for my engish Wink
Back to top
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Thu Apr 15, 2004 10:15 pm    Post subject: Reply with quote

Its not a very good idea, but you can do it if you write a resource that reads from strings. I wrote a basic one a long time ago. It should be at the wiki somewhere.
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 -> Tips and Tricks 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