From: Adam M. <ad...@tu...> - 2003-02-18 16:40:54
|
Here's a couple of links to the code in cvs. Textpad is the module where I try to show the template string in a textarea. You can find that code in the editDocument() function. The processTemplate() function is the core function that actually uses the pear IT package. I provided a link to it as well. Maybe I'm using the IT package wrong? I would appreciate any insight you can provide pierre :) Thanks for taking a look! Adam Textpad module in cvs (see editDocument() function): http://res1.stddev.appstate.edu/horde/chora/co.php/textpad/class/TextPad.php?login=2&r=1.3 processTemplate() function in cvs: http://res1.stddev.appstate.edu/horde/chora/co.php/phpwebsite/core/Template.php?login=2&r=1.21 > On Mon, 17 Feb 2003 12:33:14 -0500 (EST) > "Adam Morton" <ad...@tu...> wrote: > > >> There are also some pear issues which make it hard to edit template >> files in a textarea. Currently when you view a template file all '{' >> and '}' are replaced with '' and '' by me. This is needed >> since the variables will be replaced by the pear IT when processing >> the page. I will look into a more graceful way of handling this >> (maybe use '[' and ']' and replace them with the appropriate symbols). > > Weird, I made online templates editor using IT for the application > itself withouth problem, even with wysywig editor ;). > > Can you point me to the files where the problem occurs ? I can take a > look. > > hth > > pierre > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Phpwebsite-developers mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers --------------------------------------------------------------------- Adam Morton Developer - Electronic Student Services http://phpwebsite.appstate.edu Founder - Appalachian Linux Users Group http://alug.appstate.edu |