[PHPTAL] Prevent PHPTAL from converting HTML Chars

2008-06-11 Thread Mathias Jacob
Hi there, I'm new to PHPTAL and i'm very impressed of it. but one thing is a bit annoying ... I use different templates like index.html, header.html, etc and this worked for me: [code] $tpl = new PHPTAL('index.html'); $header = new PHPTAL('header.html'); $tpl->set('header', $header->execu

Re: [PHPTAL] Prevent PHPTAL from converting HTML Chars

2008-06-11 Thread Mathias Jacob
Yeah, Thanks for the quick reply! Now, all works fine for me and i will use PHPTAL in my projects. great work! Am 11.06.2008, 11:06 Uhr, schrieb Kornel Lesinski <[EMAIL PROTECTED]>: -- Thias Jacob Mail - MSN [EMAIL PROTECTED] ___ PHPTAL mail

[PHPTAL] Save PHPTAL into a PHP Session

2008-06-18 Thread Mathias Jacob
Is it a good "advice" to store a template into a php session like: $_SESSION["template"] = new PHPTAL('index.html'); because this would save a lot of sourcecode. Im using a "overall template" and only change in most cases the content, like: $tpl->set('content', $content->execute()); // Where

Re: [PHPTAL] Save PHPTAL into a PHP Session

2008-06-18 Thread Mathias Jacob
Am 18.06.2008, 13:10 Uhr, schrieb Iván -DrSlump- Montes <[EMAIL PROTECTED]>: Since PHPTAL compiles the templates I don't thing you'll get a performance gain from caching in the session. It could even be slower since serialization/unserialization is an expensive operation. Ah, this is what I

[PHPTAL] String in HTML Comment/Class definition

2008-09-05 Thread Mathias Jacob
Hi there, i created a php class named Box which generates me a "styled div box" and all works fine. Now i want to set the color of the box: ie: so, whats the best way to replace the "blue" in the comment/class? I tried: "> but this didnt work ... Mathias __

Re: [PHPTAL] String in HTML Comment/Class definition

2008-09-05 Thread Mathias Jacob
> > > Regards > Laurent Thanks, that worked for me! Didn't know that this works too I'm new to template engines and i don't understand a lot (ie the metal macros) ... is there a an examples page with examples of basic usage? I mean with simple full examples, not only some snippets like in th

Re: [PHPTAL] Re: German translation of the phptal documentation

2008-10-31 Thread Mathias Jacob
Hi, i just got an overview about the german translation and found 2 words. I think you should use Browser and Code instead of Brauser and Kode. As far as i know the word Brauser doesn't exists in german and Kode is an old translation and i don't know anybody who use it. More later, it's about 2 a