Camelize

From Shopify Wiki

Jump to: navigation, search

camelize(input) or camelcase(input)

This filter returns a capitalized "CamelCase":http://en.wikipedia.org/wiki/CamelCase form of the input string, after stripping it of spaces and funny characters just like handleize does.

Both camelize(input) and camelcase(input) return the same values.

Example:

<span class="variant {{ variant.title | camelize }}">{{ variant.title }}</span>
Personal tools