Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/marcw/weaver
- Owner: marcw
- License: mit
- Created: 2015-02-23T19:12:40.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-06T09:05:33.000Z (almost 10 years ago)
- Last Synced: 2024-11-11T06:46:28.221Z (2 months ago)
- Language: PHP
- Homepage:
- Size: 141 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Weaver
Weaves HTML blocks and fragments together.
```
foobarbarfoo
';
$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.
```
foobarbarfoo
__WEAVE__';
$fragments = [''];
$result = $weaver->weave($body, $fragments);
// $results contains:foobar
barfoo
```## License and Copyright
See LICENSE file in this repository