[Typo3-dev] TypoScript 2: a bit of a RFC

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Wed Nov 30 16:23:45 CET 2005


Dimitri Tarassenko schrieb:
> 
> As an alternative:
> 
> page.10(HTML) {
>     value = "HTML"
> }

It's interesting that nobody objects the really ugly fact that 10 is an 
array index.

So it should become something like that

page.body.10 ...

Though this isn't really helping in terms of compatibility.

 > The other thing that bugs me a lot is string value syntax in TS.
 > For example, you can't define a string value that ends or begins
 > with a space. In wrap values, you can't use pipe characters. I
 > vote for quote-terminated strings with \-escaping as in C/PHP.

For simplicity I vote for something like Perl regexps.

If the first and last character are the same then treat them as quotes. 
If not, it works as before (that is everythings is used after a trim). 
Perhaps not every char should be allowed for quoting but only a few:
" ' #

Masi




More information about the TYPO3-dev mailing list