Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mike-zarandona/statamicv1-wrapwords
- Owner: mike-zarandona
- Created: 2018-02-21T14:17:42.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-21T14:27:43.000Z (almost 7 years ago)
- Last Synced: 2024-11-10T22:19:28.048Z (about 2 months ago)
- Language: PHP
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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:
Pleaseseefurtherreading
```## 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)