Skip to content

A sprockets extension to support JST template creation of haml.js views

License

Notifications You must be signed in to change notification settings

johnnyicon/ruby-hamljs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HAML.js template compiler for Ruby

Will change haml.js files like:

%h1= title
%p= body

into:

HAML("%h1= title\n    %p= body")

Which can then be used in sprockets

In Rails 3.1 you can create view files in app/assets/javascripts/views with an extension of .jst.hamljs and then watch the magic happen :-)


© 2011 Andrew Timberlake

Released under the MIT license

About

A sprockets extension to support JST template creation of haml.js views

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%