Easily convert camel spaced strings to strings with spaces. So this 'camelSpacedStringThatNeedsSpaces' would be converted to this 'camel Spaced String That Needs Spaces'.
To install Camel Space, follow these steps:
- Download & unzip the file and place the
camelspace
directory into yourcraft/plugins
directory - -OR- do a
git clone https://github.com/venveo/camelspace.git
directly into yourcraft/plugins
folder. You can then update it withgit pull
- -OR- install with Composer via
composer require venveo/camelspace
- Install plugin in the Craft Control Panel under Settings > Plugins
- The plugin folder should be named
camelspace
for Craft to see it. GitHub recently started appending-master
(the branch name) to the name of the folder for zip file downloads.
Camel Space works on Craft 2.4.x and Craft 2.5.x.
Take a string that is camel cased, such as an entry type or handle, and apply the filter or function.
{{ camelSpace('camelCasedString') }}
{{ 'camelCasedString' | camelSpace }}
Both will output camel Cased String
. You can then add additional filters to apply, such as title, like this: {{ camelSpace('camelCasedString') | title }}
to output Camel Cased String
.
- Initial release
Venveo is a Digital Marketing Agency for Building Materials Companies in Blacksburg, VA. Learn more about us on our website.
The MIT License (MIT). Please see License File for more information.