comparison Lib/IMPL/Web/View/TTContext.pm @ 346:f05634287ac7

working on the view concept
author cin
date Mon, 30 Sep 2013 01:37:50 +0400
parents 72799d1211c5
children 3eafa6fefa9f
comparison
equal deleted inserted replaced
345:72799d1211c5 346:f05634287ac7
85 85
86 =begin plantuml 86 =begin plantuml
87 87
88 @startuml 88 @startuml
89 89
90 object FooContext { 90 object SharedContext {
91 document
92 this
93 model
94 }
95
96 object BarContext {
97 document 91 document
98 this 92 globals
99 model
100 }
101
102 object FooFactoryContext {
103 require = function(){}
104 include = function(){}
105 labels = {...}
106 base = "my/app/view"
107 extends = "my/app/view/bar"
108 }
109
110 object BarFactoryContext {
111 require = function(){}
112 include = function(){}
113 base = "my/app/view"
114 labels = {...}
115 extends = undefined
116 }
117
118 object RegistryContext {
119 registry
120 }
121
122 object DocumentFactoryContext {
123 require = function() {}
124 include = function() {}
125 labels = {...}
126 base = ""
127 extends = undefined
128 } 93 }
129 94
130 object DocumentContext { 95 object DocumentContext {
131 this 96 base
97 extends
132 } 98 }
133 99
134 FooFactoryContext --o BarFactoryContext 100 object ControlContext {
135 BarFactoryContext --o RegistryContext 101 base
102 extends
103 }
136 104
137 FooContext -right-o FooFactoryContext 105 SharedContext o-- DocumentContext
138 BarContext -right-o BarFactoryContext 106 SharedContext o-- ControlContext
139 107
140 DocumentFactoryContext -up-o RegistryContext 108 Document -- DocumentContext
141 DocumentContext -left-o DocumentFactoryContext 109 Control - ControlContext
142 110
143 Document --> DocumentContext 111 Loader . SharedContext: <<creates>>
112 Loader . Document: <<creates>>
113 Loader -up- Registry
144 114
145 @enduml 115 @enduml
146 116
147 =end plantuml 117 =end plantuml
148 118