Skip to content
Snippets Groups Projects
README.md 2.91 KiB
Newer Older
Volker Schukai's avatar
Volker Schukai committed
# Bob

bob is a html and html fragment builder
Volker Schukai's avatar
Volker Schukai committed

## Documentation
Volker Schukai's avatar
Volker Schukai committed

To check out docs and examples, visit [gitlab.schukai.com/oss/bob](https://gitlab.schukai.com/oss/bob)
Volker Schukai's avatar
Volker Schukai committed

## Installation
## Usage
Volker Schukai's avatar
Volker Schukai committed

### Template

#### Prepare

```bash
bob template prepare --input ./templates/ --output ./output/
```

This will create a `./output/` directory with all parsed templates from `./templates/` directory.
Also, a data YAML. This data YAML is used to generate the final files.

This command prepares the title, description, keywords, and other metadata for the templates.
Also, it will parse the templates for images, anchors, and text.

| Original                                                                      | Parsed                                                                                                                                          |
|-------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|
| `<html lang="en"><head>`                                                      | `<html lang="en" data-attributes="lang path:lang"><head>`                                                                                       |
| `<title>Bob</title>`                                                          | `<title data-attributes="title path:title">Bob</title>`                                                                                         |
| `<meta name="description" content="Bob is a html and html fragment builder">` | `<meta name="description" content="Bob is a html and html fragment builder" data-attributes="description path:meta.description">`               |
| `<img alt="alt text" title="my title" src="..." `                            | `<img alt="alt text" title="my title" src="..." data-attributes="alt path:img.id1003.alt title path:img.id1003.title src path:img.id1003.src">` |
| `<a href="https://gitlab.schukai.com/oss/bob">`                              | `<a href="https://gitlab.schukai.com/oss/bob" data-attributes="href path:a.id1004.href">`                                                       |
| `<p>Bob is a html and html fragment builder</p>`                              | `<p><span data-attributes="text path:p.id1005.text">Bob is a html and html fragment builder</span></p>`                                         |






Volker Schukai's avatar
Volker Schukai committed

## Questions
Volker Schukai's avatar
Volker Schukai committed

For questions and commercial support, please contact [schukai GmbH](https://www.schukai.com/).
The issue list of this repo is exclusively for bug reports and feature requests.
Volker Schukai's avatar
Volker Schukai committed

## Issues
Volker Schukai's avatar
Volker Schukai committed

Please make sure to read the Issue Reporting Checklist before opening an
issue. Issues not conforming to the guidelines may be closed immediately.
Volker Schukai's avatar
Volker Schukai committed

## License
Volker Schukai's avatar
Volker Schukai committed

© schukai GmbH, Released under the AGPL 3.0 License.
Volker Schukai's avatar
Volker Schukai committed

[AGPL](https://www.gnu.org/licenses/agpl-3.0.de.html)
Volker Schukai's avatar
Volker Schukai committed

You can also purchase a commercial license.