Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/marcw/weaver

A tiny lib to weave HTML parts together
https://github.com/marcw/weaver

Last synced: 20 days ago
JSON representation

A tiny lib to weave HTML parts together

Awesome Lists containing this project

README

        

# Weaver

Weaves HTML blocks and fragments together.

```
foobar

barfoo

';
$fragments = [''];
$result = $weaver->weave($body, $fragments);
// $results contains:

foobar

barfoo


```

It's also possible to implicity tells the library where to weaves the HTML pieces.

```
foobar

barfoo

__WEAVE__';
$fragments = [''];
$result = $weaver->weave($body, $fragments);
// $results contains:

foobar

barfoo


```

## License and Copyright

See LICENSE file in this repository