Skip to content

pnktweb/craft-camelcase-to-kebabcase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Craft camelCase to kebab-case

Adds cc2kc filter and function to Twig.

Usage

{{ var | cc2kc }}

or

{{ cc2kc(var) }}

Example

{{ entry.type.handle | cc2kc }}

About

Adds `cc2kc` filter and function to Twig

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages