load template from string var

[email protected] (Jeremiah Bellomy) Mon, 13 Mar 2000 18:30:20 -0600
Newsgroups php.template
Message-ID <B4F2E43C.814C%[email protected]>
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