Skip to content

How to get and serve HTML fragments? #9

@napolux

Description

@napolux

I was wondering how can I render an HTML fragment which is not a component...

For example:
Let's say that example.com/esi-fragment is serving

<div> content </div>

So, as per ESI i can do something like this in an example.com page

<esi:include src="/esi-fragment"/>

And I should see the div rendered in my page.

In all the examples I see online I only can see react components rendered... Which is working, but not really what I want to do.... Is there something I'm getting wrong?

Thanks!

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