frame-placer
v0.1.1
Published
Place turbo-frame tags into your DOM
Downloads
1
Readme
FramePlacer
FramePlacer is a library for replacing turbo-frame
elements.
Installation
npm install frame-placer
Usage
import FramePlacer from "frame-placer";
html = '<turbo-frame id="some-frame-id">Incoming frame in DOM</turbo-frame>';
FramePlacer.replace(html);
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.