Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ws-replace prepends instead of replaces in full-template mode #284

Open
granicz opened this issue May 3, 2024 · 0 comments
Open

ws-replace prepends instead of replaces in full-template mode #284

granicz opened this issue May 3, 2024 · 0 comments

Comments

@granicz
Copy link
Member

granicz commented May 3, 2024

I have a template with a ws-replace="MainContainer node, that I use as follows:

type IndexTemplate = Template<"wwwroot/index.html", ClientLoad.FromDocument>

let foo () =
    IndexTemplate()
        // ...
        .MainContainer(...)
        .Bind()

What I find is that the content I add to MainContainer gets prepended to the <body> node, instead of replacing the marker node.

@granicz granicz added the bug label May 3, 2024
Jooseppi12 added a commit that referenced this issue May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: v7.0
Development

No branches or pull requests

2 participants