ame="user-model"></a><a href="#user-model">User Model<span class="anchor"> &#182;</span></a></h2><p>When a user logs in, Moya looks up a user object from the database and stores it in the context as <code>.user</code>. If no user has logged in, the value of <code>.user</code> will be missing &ndash; which allows you to write code such as this:</p>
<pre class="moya-console format-xml"><a name="line1"></a><div class="line line-1"></span><span class="tag">&lt;</span><span class="tag tagname">if</span><span cla