def resources_to_html(self, placement):
<EOL>return '<STR_LIT:\n>'.join(<EOL>self.resource_to_html(resource)<EOL>for resource in self.resources<EOL>if resource.placement == placement<EOL>)<EOL>
Get some resource HTML for this Fragment.

`placement` is "head" or "foot".

Returns a unicode string, the HTML for the head or foot of the page.