{dynamic}/{insert} and caching
| From: | G | Date: | Tue, 13 Aug 2002 22:21:33 +0000 |
| Subject: | {dynamic}/{insert} and caching | ||
| Groups: | php.smarty.dev | ||
| Request: | Send a blank email to php-smarty-dev+get-240@lists.php.net to get a copy of this message | ||
Ever consider adding a {dynamic} template function or extending {insert} as
a block function? The intent is that anything in between wouldn't be cached.
Plus you wouldn't need to create a custom function for {insert} (and
probably a separate template as a nicety for the text that function
returns). Or add a "file" attribute to {insert}...
Would creating such as custom block function even be feasible with smarty
currently? Browsing through the archives, it appears assign() can be used to
override vars in cached templates (haven't tried yet).
Gerard