pnktweb / craft-camelcase-to-kebabcase

Adds `cc2kc` filter and function to Twig
MIT License
2 stars 2 forks source link

Craft camelCase to kebab-case

Adds cc2kc filter and function to Twig.

Usage

{{ var | cc2kc }}

or

{{ cc2kc(var) }}

Example

{{ entry.type.handle | cc2kc }}