Jader

screenshot of Jader

Client and Server side Jade template compiler for Rails

Overview:

Jader is a gem that allows you to easily use Jade templates for both server and client side in your Rails project. It enables you to share your Jade templates between the server and the client. On the server side, you can render your Jade templates as Rails views, similar to how you would render ERB or HAML templates. On the client side, the templates should be used with Sprockets' JST engine.

Features:

  • Ability to use Jade templates for both server and client side in a Rails project
  • Sharing of templates between the server and the client
  • Rendering of Jade templates as Rails views on the server side

Summary:

Jader is a gem that allows you to share your Jade templates between the server and the client in a Rails project. It enables you to render Jade templates as Rails views on the server side and use them with Sprockets' JST engine on the client side. The installation process involves adding the gem to your Gemfile, creating a views directory for shared templates, adjusting the Rails views lookup path, and modifying your controller and JavaScript code to fetch and render the template. With Jader, you can easily use Jade templates in your Rails project and share the same templates between the server and the client.