Skip to content

Conversation

@jonabbey
Copy link

tagsoup will insert <html><head>..</head></html> around template pieces
that contain <link> elements, so it's necessary for the html-body function
to be able to handle that.

jonabbey added 2 commits June 23, 2014 06:12
If *template-path* is nil, the template path will be rooted at the top of
the web resource path.
@jonabbey
Copy link
Author

Ups, I didn't intend for the "allow template-path to be nil patch to be included in this pull request,
sorry.

I think they are both appropriate changes, however.

@jonabbey
Copy link
Author

And the commit comment is pretty scrambled.

It turns out that if you have a template file that looks like this:

<link rel="stylesheet" href="..">

tag soup will wrap it with <html><head> and </head></html>, instead of
<html><body> and </body></html> as enlive-partials was assuming.

This patch makes the processing of included templates work in either case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant