News for hackers. Stuff that matters.
Re:Astro framework lowers competitors by ~40% on performance... by slmjkdbtl on Wednesday July 05, 2023 @12:14PM (#36602544)
You can just make a function that generates HTML string like

    h("div", { class: "container" }, [
        h("p", {}, "oh hi!"),
        ...projects.map(renderProject),
    ])
the end result will have no JS if all you want is reuse HTML parts, much better than template languages imo (no additional syntax, has loops / functions / variables out of the box)

There are no comments on this comment yet.