Skip to content

CoffeeFilter is a custom haml filter for rendering coffeescript.

License

Notifications You must be signed in to change notification settings

Liquidthread/coffee-filter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

CoffeeFilter is a custom haml filter for rendering coffeescript.

Resources

License

Stars

Watchers

Forks

Packages

No packages published