Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
たとえば、誰もログインしていない場合は、サインアップまたは再ログインできる場所へのリンクを表示したいのですが、ユーザーがログインしている場合は、プロファイルやその他の情報にアクセスできるようにする方法が必要です。
Haskell コードから使用maybeAuthして認証情報を取得し、$maybeHamlet 内でその結果に基づいて動作を変更する必要があります。maybeAuthHamlet ではアクション (データベース ルックアップなど) を実行できないため、Hamlet 内から実行することはできません。
maybeAuth
$maybe
エレメント?