PDA

View Full Version : question about parse_templates


testbot
02-20-2010, 03:26 PM
not sure why i'm just thinking about this now but when you parse a template it's after it's processed, right? is there a way to do templatecache['templatename'] = str_replace on a template before it's processed?

Vaupell
02-20-2010, 10:45 PM
yes i do in my photobucket mod..

i add via str_replace in a plugin, but i also create a blank template to "render" the new
content im adding via the plugin..

- Register variables with preregister
- (blank) Templater render
- str_replace

i dont think its as intended, but its working.

testbot
02-21-2010, 04:59 PM
hmm... i'll have to sneak a peak at your mod if you don't mind.