package xtemplmulti

import "cpone/models"

func stringToTemplComp(textAll string) templ.Component {
	return templ.ComponentFunc(func(ctx context.Context, w io.Writer) error {
		_, err := io.WriteString(w, textAll)
		return err
	})
}

templ MainXTemplMulti(arrString []models.XtemplModel) {
    <div id="dataMhs" style="margin-bottom: 20px">
        <table>
            <tr>
                <td>Jarot</td>
            </tr>
        </table>
    </div>

    <div id="dataGuru" style="margin-bottom: 20px">
        <table>
            <tr>
                <td>Desy</td>
            </tr>
        </table>
    </div>
    for _, v := range arrString {
        { v.NameTempl }
        { v.HtmlString }

        @stringToTemplComp(v.HtmlString)
    }
   
}