Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sjelfull/craft-smartypants
Use SmartyPants in Craft.
https://github.com/sjelfull/craft-smartypants
craftcms craftcms-plugin
Last synced: 2 months ago
JSON representation
Use SmartyPants in Craft.
- Host: GitHub
- URL: https://github.com/sjelfull/craft-smartypants
- Owner: sjelfull
- Created: 2015-03-11T16:35:35.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-02-25T19:20:39.000Z (almost 8 years ago)
- Last Synced: 2024-03-31T06:40:43.322Z (9 months ago)
- Topics: craftcms, craftcms-plugin
- Language: PHP
- Size: 21.5 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## SmartyPants for Craft
Use [PHP SmartyPants](https://github.com/michelf/php-smartypants) to apply a handful of nice typography rules to text.
## Usage
```twig
{% set text %}
<< I can't believe three years have already passed since Kirby's first release on January 9, 2012. A lot happened in the meantime and I can't thank you enough for your constant support and feedback throughout those three years. It means the world to me that my little software baby is still growing strong with your help. There's more to come - a lot more --- and I can't wait to share it with you ... >>
{% endset %}SmartyPants
{{ text | smartypants }}
SmartyPants Typographer
{{ text | smartyTypographer }}
```