Skip to content

Document template-accessible vars.logged_in_user_hash or session.logged_in_user[_realm]? #91

@cxw42

Description

@cxw42

I am learning Dancer2 and find this module quite useful! I see that logged-in-user information is available in a TT2 template through vars and session. For example, both of these work:

[% if vars.logged_in_user_hash %]
  <p>(Hash) You are logged in as
  [% vars.logged_in_user_hash.name | html %]</p>
[% end %]

[% if session.logged_in_user %]
  <p>(Session) You are logged in as
  [% session.logged_in_user | html %]@[% session.logged_in_user_realm | html %]</p>
[% end %]

However, I do not see vars.logged_in_user_hash or session.logged_in{_user,_user_realm} documented in the POD for this module. Is any of those part of the public API of this module? If so, could they be documented? Thanks for considering this question!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions