Re: [PHPTAL] Compose an HTML attribute using static text + dynamic text

2009-09-13 Thread Michał Wysoczański
Hi,

On Sun, Sep 13, 2009 at 1:09 PM, Mariano Calandra 
mariano.calan...@gmail.com wrote:

 span tal:attributes=id person/id_name some text /span

 I resolve partially my problem cause I just have 1, 2. How can i prepone
 the static text name_ to the dynamic text from person/id_name???


Try something like that:

span id=name_${person/id_name}some text/span

Regards,
Michał
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


Re: [PHPTAL] PHPTAL fails with long text nodes

2009-06-09 Thread Michał Wysoczański
2009/6/8 Kornel Lesiński kor...@aardvarkmedia.co.uk


 In the meantime I've added not-so-pretty workaround that splits string into
 small chunks and checks each one individually.

 See if that helps:

 http://phptal.org/files/PHPTAL-1.2.0beta4.tar.gz


Works fine, thanks.


Regards,
Michał W.
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


[PHPTAL] PHPTAL fails with long text nodes

2009-06-08 Thread Michał Wysoczański
Hello,

I've tried to use PHPTAL with templates with some long text nodes (i.e.
plong text here.../p),
and noticed that PHPTAL generates internal server error (500) (tested on
1.2.0b3 and svn HEAD).
Error is generated by preg_match() call in checkEncoding() method of
PHPTAL_Dom_SaxXmlParser class (line 373). It seems that PCRE fails with long
strings. The exact
length of string depends on machine I've tested on, but 9.5k should be
enough to generate error.
I know, that this is not PCRE issue, not PHPTAL, but maybe PHPTAL should
perform encoding checking in
other way?

Regards,
Michał W.
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


[PHPTAL] Problem with PHPTAL::addSourceResolver()

2009-04-23 Thread Michał Wysoczański
Hello,

There is a little error in PHPTAL::addSourceResolver(). The attached simple
patch fixes this.

Regards,
Michał Wysoczański


PHPTAL_addSourceResolver.patch
Description: Binary data
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal