Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/deraen/boot-hyphenate

Boot task to hyphenate HTML files.
https://github.com/deraen/boot-hyphenate

Last synced: about 1 month ago
JSON representation

Boot task to hyphenate HTML files.

Awesome Lists containing this project

README

        

# boot-hyphenate
[![Clojars Project](http://clojars.org/deraen/boot-hyphenate/latest-version.svg)](http://clojars.org/deraen/boot-hyphenate)

[Boot](https://github.com/boot-clj/boot) task to hyphenate HTML files using
[clj-hyphenate](https://github.com/Deraen/clj-hyphenate).

## Use

The task will replace contents of HTML text nodes (`p`, `h1-6`, ...) with
text which contains soft-hyphens (`­`). To tell browsers to use these
soft-hyphens use following CSS:

```css
p {
hyphens: manual;
/* Optional */
text-align: justify;
}
```

## License

Copyright (C) 2015 Juho Teperi

Distributed under the MIT License.