render_html_loop

func render_html_loop<Values: Iterable>(values: Values, consume body: (Values.Element) -> String) -> String

Concatenates a rendered macro body for every element in iteration order.

body must return already-safe markup produced by the macro expansion; this helper joins strings directly and does not escape them again.

View Source
pub func render_html_loop<Values: Iterable>(values: Values, consume body: (Values.Element) -> String) -> String {
	let output = ""
	for value in values {
		output = output + body(value)
	}
	output
}