[TYPO3-mvc] default namespace in fluid templates

Sebastian Kurfürst sebastian at typo3.org
Wed Apr 28 15:31:12 CEST 2010


Hey,

we can discuss this maybe on T3DD, but as some background:
I modelled the behavior of namespace definitions to behave like the
you include an XML schema in an XML file. It has to be defined over and
over again in every XML file, but this has the great benefit that one
can validate a single file without knowing any context.

This is, I think, the main benefit as well: One can understand a single
fluid template just by looking at it; without looking at any other fluid
template (just because everything you need to understand it is directly
included).

As said, I look forward to discussing this on T3DD, but right now I am
not convinced yet to change this behavior ;)

Greets,
Sebastian

Am 28.04.10 12:58, schrieb Franz Koch:
> Hey,
> 
>> wouldn't it make sense to load a namespace called "this" into each fluid
>> template by default, representing the actual extension? this would make
>> the use of own viewHelpers easier.
> 
> It would also be helpful to inherit namespaces from parent
> templates/layouts unless overridden, so that you only have to define a
> certain namespace in your main layout and from then on can use it inside
> any template or partial.
> 



More information about the TYPO3-project-typo3v4mvc mailing list