Re: My template idea...
[email protected] ("Tobias Ratschiller")
| Newsgroups | php.template |
|---|---|
| Message-ID | <006f01bf77e6$4c6f28c0$2bd0f2c2@tobiasneu> |
> > Yes You can say that. All the content is in the database. When the
> > system sees a content is in memory, it triggers some loops. It's an easy
> > and efficient way to do it 8)
>
> It probably is, I don't understand the system completely yet, but I
> don't think that would be the right approach for the built-in template
> engine.
But it may be worthwhile to have the template system independent of files -
to allow it to also start from strings:
resource tpl_load_from_string(string string [, string path_to_configs])
- loads a template from a string and performs initial parsing which
includes replacing the config variables with their values, stripping
comments, and
printing out {%..} constructs.
-Tobias