Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
CoffeeFilter is a custom haml filter for rendering coffeescript.
branch: master

This branch is 9 commits behind paulnicholson:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitignore
Gemfile
MIT-LICENSE
README.rdoc
Rakefile
coffee-filter.gemspec

README.rdoc

What is coffee-filter?

Coffee-filter provides a custom haml filter allowing you to inline coffeescript in your haml templates. It was inspired by Ivan Nemytchenko's coffee-haml-filter but I wanted an installable gem and “coffeescript” as the filter name.

Example

Haml:

%div
  stuff
  :coffeescript
    alert 'here'

Html:

<div>
  stuff
  <script type='text/javascript'>
    //<![CDATA[
      (function() {
    alert('here');
  }).call(this);

    //]]>
  </script>
</div>

Installation

Add the following to your Gemfile:

gem 'coffee-filter'

Copyright © 2011 Paul Nicholson, released under the MIT license

Something went wrong with that request. Please try again.