[PHPTAL] < > signs in content as text

2008-11-20 Thread Szymek Przybył
THANKS KORNEL FOR YOUR HELP! :) cheers! szymek ___ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.motion-twin.com/mailman/listinfo/phptal

Re: [PHPTAL] < > signs in content as text

2008-11-20 Thread Kornel Lesiński
On 20-11-2008 at 16:53:52 Szymek Przybył <[EMAIL PROTECTED]> wrote: Sorry, this:




don't work - chars '<' '>' are replaced

[PHPTAL] < > signs in content as text

2008-11-20 Thread Szymek Przybył
Sorry, this:




don't work - chars '<' '>' are replaced by entities before it will be 
between  :)


_

[PHPTAL] < > signs in content as text

2008-11-20 Thread Szymek Przybył
Well this:




is bad idea to do that? :) in regex it will be more complicated.


cheers!
szymek

_

Re: [PHPTAL] < > signs in content as text

2008-11-20 Thread Kornel Lesiński
On 20-11-2008 at 15:23:30 Szymek Przybył <[EMAIL PROTECTED]> wrote: Is there some way to add automatically /**/ on start and end of js scripts? You can write regular expression that does it and hook it up using phptal->setPreFilter(). If you have decent text editor that supports snippets/m

[PHPTAL] < > signs in content as text

2008-11-20 Thread Szymek Przybył
Is there some way to add automatically /**/ on start and end of js scripts? Something like this works:




But i don't know, is

Re: [PHPTAL] < > signs in content as text

2008-11-20 Thread Szymek Przybył
Thanks Kornel, it works great! I couldn't understood macros, how to use it :) ps. How title of message could be, to response for some e-mail on this mailing list? I tried all the combinations: "Re: Title", "Re: [PHPTAL] Title", "Title", "[PHPTAL] Title", "[PHPTAL] Re: Title", and always my e

Re: [PHPTAL] < > signs in content as text

2008-11-20 Thread Kornel Lesiński
On 19-11-2008 at 20:43:49 Szymon Przybył <[EMAIL PROTECTED]> wrote: And now, when I want to use sings like < or > in js code, I write: if(count3) ...and you create invalid XHTML. (otherwise xml parsing will return an error) Because literal < and > are forbidden in in XHTML (they are

[PHPTAL] < > signs in content as text

2008-11-19 Thread Szymon Przybył
Hi! I'm using in my template two macros - 'content' and 'js' (block with javascript code). main.html: . # thanks to on-error="" even if in some template there is only 'content' macro (without 'js' macro), isn't added to code (thanks for kornel for this idea ;) ). .. . examp