package base
templ Table(headers []templ.Component, rows []templ.Component, attrs templ.Attributes) {
for _, header := range headers {
|
@header
|
}
for _, trow := range rows {
@trow
}
}
// Component to use as plain text when
// templ.Component is used as argument
templ PlainText(content string) {
{ content }
}