所以我有以下HTML logout.html
:
<form id="log_out" name="log_out" action="/log_out" method="post">
<input type="submit"
value="Log Out!">
</input>
</form>
看起来我需要一些函数来读取logout.html
活跃节点(至少我认为wrap
需要节点;我实际上不确定)。
(html/defsnippet nav "templates/nav.html" [:ul]
[]
[:ul] (html/append
(html/wrap :li (html/SOME-FUNCTION-IDK "templates/logout.html"))))