In my Kemal based application I wanted to show the elapsed time.
So in the layout.ecr I added
<%= Time.monotonic - start %> but I did not know where to set start.
If I set in the body of the main .cr file then it will be set at startup time.
If I set it in
before_all then it will be scoped and won’t be available in the template.
Is there some global variable where it could be stored and then retrieved in the template?