Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mike-zarandona/statamicv1-wrapwords

A Statamic v1 modifier to wrap individual words with a specified tag
https://github.com/mike-zarandona/statamicv1-wrapwords

Last synced: about 12 hours ago
JSON representation

A Statamic v1 modifier to wrap individual words with a specified tag

Awesome Lists containing this project

README

        

# Statamic-WrapWords
A Statamic v1 modifier to wrap individual words with a specified tag

## What is this?
This is a variable modifier for [Statamic v1](http://v1.statamic.com). Use this modifier to wrap individual words with a specified HTML tag.

## Examples
```
// title = "Hello World"
{{ title|wrapwords:span }}

// results in:
Hello World

...

// helpertext = "Please see further reading"
{{ title|wrapwords:div }}

// results in:

Please
see
further
reading

```

## Installation
- Create a new folder inside of your `_add-ons` folder called `wrapwords`.
- Place `mod.wrapwords.php` inside `_add-ons/wrapwords/`.

## Changelog
1.0.0 - Initial release

## Author
Mike Zarandona | [@mikezarandona](http://twitter.com/mikezarandona)