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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/ Implement js functions as template helpers #48

Merged
merged 1 commit into from
Aug 21, 2020

Conversation

BlueCutOfficial
Copy link
Member

@BlueCutOfficial BlueCutOfficial commented Aug 21, 2020

Features

Implement js functions as template helpers (#48)

slugify and removeDiatrics functions can now be called as template helpers:

await render(hbs`{{slugify '你好你怎么样 monsieur'}}`)
await render(hbs`{{remove-diacritics 'Théâtre'}}`)

Copy link
Member

@ndekeister-us ndekeister-us left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ndekeister-us ndekeister-us merged commit 65ba921 into master Aug 21, 2020
@ndekeister-us ndekeister-us deleted the feat/helper branch August 21, 2020 12:22
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.

3 participants