diff 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
line wrap: on
line diff
--- a/Lib/IMPL/Web/View/TTContext.pm	Fri Sep 27 16:28:27 2013 +0400
+++ b/Lib/IMPL/Web/View/TTContext.pm	Mon Sep 30 01:37:50 2013 +0400
@@ -87,60 +87,30 @@
 
 @startuml
 
-object FooContext {
-	document
-	this
-	model
-}
-
-object BarContext {
+object SharedContext {
     document
-    this
-    model
-}
-
-object FooFactoryContext {
-	require = function(){}
-	include = function(){}
-	labels = {...}
-	base = "my/app/view"
-	extends = "my/app/view/bar"
-}
-
-object BarFactoryContext {
-	require = function(){}
-	include = function(){}
-	base = "my/app/view"
-	labels = {...}
-	extends = undefined
-}
-
-object RegistryContext {
-	registry
-}
-
-object DocumentFactoryContext {
-	require = function() {}
-    include = function() {}
-    labels = {...}
-    base = ""
-    extends = undefined
+    globals
 }
 
 object DocumentContext {
-	this
+    base
+    extends
+}
+
+object ControlContext {
+    base
+    extends
 }
 
-FooFactoryContext --o BarFactoryContext
-BarFactoryContext --o RegistryContext
+SharedContext o-- DocumentContext 
+SharedContext o-- ControlContext 
 
-FooContext -right-o FooFactoryContext
-BarContext -right-o BarFactoryContext
+Document -- DocumentContext
+Control - ControlContext
 
-DocumentFactoryContext -up-o RegistryContext
-DocumentContext -left-o DocumentFactoryContext
-
-Document --> DocumentContext
+Loader . SharedContext: <<creates>>
+Loader . Document: <<creates>>
+Loader -up- Registry
 
 @enduml