main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
375 bytes
|
Line | |
---|
1 | import Transcluder from "./Transcluder.mjs";
|
---|
2 | /**
|
---|
3 | * This is a mutating function. If you don't want your Element to be mutated,
|
---|
4 | * clone in before passing it to this function.
|
---|
5 | */
|
---|
6 | export const transclude = (search, replace, element) => {
|
---|
7 | const transcluder = new Transcluder({
|
---|
8 | element
|
---|
9 | });
|
---|
10 | return transcluder.transclude(search, replace);
|
---|
11 | };
|
---|
12 | export default Transcluder; |
---|
Note:
See
TracBrowser
for help on using the repository browser.