Skip to content

component meta-compiler #64

@leeoniya

Description

@leeoniya

so here's a fun one. not really ivi specifc.

let's say i want to make an interface that renders arbitray CSV files into html tables. this doesnt fit the nice static Row template approach in js-framework-benchmark.

https://github.com/krausest/js-framework-benchmark/blob/master/frameworks/keyed/ivi/src/main.ts#L66

insteadd you end up having to do nested tr/td loops, which is not great. ideally you could dynamically compile a static Row template probably using new Function to avoid the inner td loop and rely on cloneNode of the mostly complete whole row dom.

would typings need to go out the window in this case? maybe not? 🤔

not sure if there's anything that can be done on the ivi side to help with this use case but figured i'd start a convo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions