Feature #2230

Overlay named and default namespaces

Added by Niels Fröhling almost 13 years ago. Updated almost 11 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2008-11-27
Due date:
% Done:

0%

Estimated time:
Has patch:

Description

Implement overloading on namespaces:

{namespace f3=F3::Beer3::HTML overlay} {namespace f3=F3::Beer3::XHTML1 overlay} {namespace f3=F3::Beer3::XHTML2 overlay} {namespace f3=F3::Beer3::XHTML2::XFORMS overlay}

Then a tag:

<f3::xform type="text" />

is called/searched in cascade:

$in = ...
foreach (all namespaces f3::) {
if (viewhelper in current namespace has method xform)
$in = viewhelper->xform(params)
}

It's important to keep the Cascade in mind in repect to default-namespaces, as this enables almost complete OOP behaviour for ViewHelpers as Transformers:

initial
F3::Beer3::XHTML2::XFORMS->xform $in = <xform type="text" />
F3::Beer3::XHTML2->xform $in = <input type="text" style="color: red" />
F3::Beer3::XHTML1->input $in = <input type="text" style="color: red" />
F3::Beer3::HTML->input $in = <input type="text" color="red">

#1

Updated by Sebastian Kurfuerst over 11 years ago

  • Status changed from New to Rejected

for the moment not planned or realizable, as this needs a major rework on the code, and we are not sure if the use-case is happening in real life.

Also available in: Atom PDF