primosz67 - 2015-06-17
  • Description has changed:

Diff:

--- old
+++ new
@@ -1,33 +1,37 @@
 Create @Template tag  - 

 templates: 
-@Field $fieldName = $value; 
-{
+

+    @Field $fieldName = $value; 
+    {


-    this.$fieldName =  $value;
-    this.get[firstUppercase $fieldName] = function ($fieldName){
-        me.$fieldName = $fieldName;
+        this.$fieldName =  $value;
+        this.get[firstUppercase $fieldName] = function ($fieldName){
+            me.$fieldName = $fieldName;
+        }
+        this.set[firstUppercase $fieldName] = function ($fieldName){
+            me.$fieldName = $fieldName;
+        }
     }
-    this.set[firstUppercase $fieldName] = function ($fieldName){
-        me.$fieldName = $fieldName;
+
+
+
+    @Class $name
+    {
+        function $name() {
+             var me = $this;
+             [content]   
+        }
     }
-}
-
-@Class $name
-{
-    function $name() {
-         var me = $this;
-         [content]   
-    }
-}

 use : 

-@Class Sort { 

-    @Field text = "start";
-
-    @Function createUser(user) {
-        me.user = user; 
+    @Class Sort { 
+        @Field text = "start";
+    
+        @Function createUser(user) {
+            me.user = user; 
+        }
+        etc. ..
     }
-    etc. ..
-}
+