load template from string var

From: Date: Tue, 14 Mar 2000 00:30:20 +0000
Subject: load template from string var
Groups: php.template 
Request: Send a blank email to php-template+get-310@lists.php.net to get a copy of this message
This may already be possible with the current API but I couldn't tell for sure from the spec file, so here goes: I just wanted to be sure that it's possible to load a template from the contents of a PHP variable as well as from files. This allows for the possibility of storing templates in a database so that for example, I could load $my_template from the database and then make it a template with something like: tmpl_load_from_var(resource tmpl, string varname) Loads a template from the contents of a string. tmpl_load_from_var('my_template.tpl', $my_template); So, is this possible by some other means currently defined in the spec? -- Jeremiah

« previous php.template (#310) next »