I’d like to send a authenticated boolean value, and the user object to the base html template, because I want to be able to log out and use the user object for other things. How do we access the base.leaf page when sending responses or views?
@yungdai to be honest I would just pass in the
user and check if it is
nil or not rather than the boolean value. As for accessing things in base.leaf, any template used to render the page should have access to all the context. E.g. the sample repo uses
#(title) in base.leaf which is actually passed into whatever page you are using
That’s what I ended up deciding on. Thank you!