So I have the following HTML in logout.html
:
<form id="log_out" name="log_out" action="/log_out" method="post">
<input type="submit"
value="Log Out!">
</input>
</form>
It looks like I need some function to read logout.html
as enlive nodes (At least I think wrap
takes nodes; I'm not actually sure).
(html/defsnippet nav "templates/nav.html" [:ul]
[]
[:ul] (html/append
(html/wrap :li (html/SOME-FUNCTION-IDK "templates/logout.html"))))
I ended up having to modify overthink's answer to get it working.
How
wrap
works is it wraps selected elements in a given tag. So in this case,#log_out
is selected and is wrapped with theli
tag.It's definitely not as clean as I'd like, but it works.