Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring back smartypants #2689

Merged
merged 1 commit into from Oct 20, 2020
Merged

Bring back smartypants #2689

merged 1 commit into from Oct 20, 2020

Conversation

jasonvarga
Copy link
Member

Due to popular demand (at least 3 whole people 馃し). This PR brings back the smartypants modifier and a Statamic\Support\Html::smartypants() method if you want to use it from PHP.

Previously there was the ability to choose the 'behavior' but you had to pass in arbitrary constants which were ints and it was just a bit weird. I didn't include those. If someone needs them, we can think about a better way. Doing {{ words | smartypants:2 }} doesn't make sense.

Closes #2683
Closes #2139
Closes statamic/docs#203

@jasonvarga jasonvarga merged commit fda9718 into master Oct 20, 2020
@jasonvarga jasonvarga deleted the feature/smartypants branch October 20, 2020 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bring back smartypants modifier Update smartypants modifier Smartypants modifier causes an error
1 participant