Skip to content

Want to use sauron DOM/ VDOM and html_parser #101

@qknight

Description

@qknight

I want to use the sauron DOM/VDOM and the html_parser as a library, thus not in a typical sauron context.

I tried to use percy for this, see chinedufn/percy#208, but my results so far are not good enough to replace https://github.com/qknight/blog.lastlog.de/blob/master/js/diffDOM.js which is used in pankat at the moment.

The vdom/dom libraries I was looking into is documented at nixcloud/pankat#7

main question

That said, looking at the examples at https://github.com/ivanceras/sauron/tree/master/tests all dom patching is done using the https://github.com/ivanceras/sauron/blob/master/tests/test_fixtures.rs by creating a small sauron runtime (I assume).

html_parse can be used as a library without runtime in https://github.com/ivanceras/sauron/blob/master/tests/html_parser_test.rs but can I use dom without spawning a sauron runtime?

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