Parsing smarty tags inside plugins
| From: | Marcus Bointon | Date: | Thu, 26 Aug 2004 12:39:04 +0000 |
| Subject: | Parsing smarty tags inside plugins | ||
| Groups: | php.smarty.dev | ||
| Request: | Send a blank email to php-smarty-dev+get-2520@lists.php.net to get a copy of this message | ||
I'm writing a Smarty plugin for handling translations. One thing I'd like to
be able to handle is embedding smarty tags in the translations. Can I do
this using the existing Smarty instance that's passed in to the plugin, or
do I need to fire up a separate instance and parse the translation text
before passing it back to the calling template?
Are there any other factors I need to consider in this structure?
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
marcus@synchromedia.co.uk | http://www.synchromedia.co.uk