Skip to content

harryfk/craft-camelcase-to-kebabcase

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 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

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%