Create @Template tag
Status: Alpha
Brought to you by:
primosz67
Create @Template tag -
templates:
@Field $fieldName = $value;
{
this.$fieldName = $value;
this.get[firstUppercase $fieldName] = function ($fieldName){
me.$fieldName = $fieldName;
}
this.set[firstUppercase $fieldName] = function ($fieldName){
me.$fieldName = $fieldName;
}
}
@Class $name
{
function $name() {
var me = $this;
[content]
}
}
use :
@Class Sort {
@Field text = "start";
@Function createUser(user) {
me.user = user;
}
etc. ..
}
Diff: