LiteJS

Simplicity is the ultimate sophistication. —Leonardo da Vinci

Liquid Filters

Standard Filters for liquid-lite extending native prototypes. Download compressed (1572 bytes, 746 bytes gzipped) or uncompressed source.

Build Status

Currently supported filters

    var item = { "timestamp": 1363770186, "datetime": "2013-03-20T09:03:06Z" }
    {{ timestamp | date:"isoUtcDateTime" }}
    {{ datetime | date:"hh:mm" }}
    
    {{ 'foofoo' | replace:'foo','bar' }} #=> 'barfoo'
    {{ 'foofoo' | replace:/foo/g,'bar' }} #=> 'barbar'
    

Todo

Licence

Copyright (c) 2012 Lauri Rooden <lauri@rooden.ee>
The MIT License

Fork me on GitHub