You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The second one isn't so brilliant in my opinion. Explicit is better than implicit and by saving a few calls the code looses much of its clarity for people who don't know what exactly parseChain() does. And it's more bug-prone if you forget to split it into multiple calls later when you change code.
Have some suggestions for XTemplate methods…
First
Make
XTemplate->parse()
to return self object, so we can use basic chain to simplified constructions like this:to this:
Second
Often while working with complex templates with nested blocks we need to do something like this:
Suggest to add
XTemplate->parseChain()
method that can do it for us with simply:The text was updated successfully, but these errors were encountered: