项目作者: derrickreimer

项目描述 :
A collection of handy extensions to the Liquid templating engine
高级语言: Ruby
项目地址: git://github.com/derrickreimer/condensation.git
创建时间: 2013-10-09T16:52:51Z
项目社区:https://github.com/derrickreimer/condensation

开源协议:MIT License

下载


Condensation

A collection of handy Liquid filters. Developed for Drip.

Installation

Add this line to your application’s Gemfile:

  1. gem 'condensation'

And then execute:

  1. $ bundle

Or install it yourself as:

  1. $ gem install condensation

Usage

To make all the filters available in your Liquid templates, place this call
in your app initialization code:

  1. Condensation.register_filters

For example, in a Rails app, you’ll likely place this in an initializer.
To pick and choose which filters you like, just register them manually:

  1. Liquid::Template.register_filter(Condensation::Filters::DaysUntil)

Explore all the available filters here.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request