Hi Hashdeep,
This is a good question. I guess my answer is @set shouldn't be deprecated. They are necessary to pass run-time updates to parent template. Actually what you need is just need to use @set(), for any place you want to use @get("foo"), you can use @foo if you have declared "foo" as render argument in your parent template. If you haven't declared foo as render args using @args directive, then you still need to use @get("foo") to pick it up
I have just pushed an new 1.0.1-SNAPSHOT so that you can even use @set() to set the render args for "this" template, not just parent template. Thus you can do something like:
@args String title
@if(a) {
@set(title: "A")
} else {
@set(title: "B")
}
<h1>@title</h1>
Although you can do the same thing this way:
@args String title
@{
title = a ? "A" : "B"
}
<h1>@title</h1>
However the second way won't pass the new title to the parent template, while the first allows you to use @title to get anything you passed via @set(title: ...)
Regards,
Green