Feature #2230
Overlay named and default namespaces
Status: | Rejected | Start date: | 2008-11-27 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | - | % Done: | 0% |
|
Category: | - | |||
Target version: | - | |||
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">
History
#1 Updated by Sebastian Kurfuerst over 5 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.