litejs

Standard Filters for liquid-lite extending native prototypes
@version    0.1.5
@date       2015-04-09
@stability  2 - Unstable

Liquid Filters – Build Coverage

Standard Filters for liquid-lite extending native prototypes.

Currently supported filters

-   **capitalize** - capitalize words in the input sentence
-   **downcase** - convert an input string to lowercase
-   **upcase** - convert an input string to uppercase
-   **first** - get the first element of the passed in array
-   **last** - get the last element of the passed in array
-   **join** - join elements of the array with certain character between them.
    `Native in javascript`
-   **sort** - sort elements of the array
    `Native in javascript`
-   **size** - return the size of an array or string
-   **replace** - replace the first or each occurrence. 
    `Native in javascript`
    ```javascript

    {{ 'foofoo' | replace:'foo','bar' }} #=> 'barfoo'
    {{ 'foofoo' | replace:/foo/g,'bar' }} #=> 'barbar'

Todo

Licence

Copyright (c) 2012 Lauri Rooden <[email protected]>
The MIT License

Fork me on GitHub
Tags: template, engine, liquid, filters, litejs

Have an update or suggestion for this note? You can edit it and send me a pull request.

Since 2013 to 2015