Doing all transformations inside view

No middleware required