Sha256: 1bd0f33f747ab2000a64924c1a32ccecd90676e8640a2083db15540eda01a3c1

Contents?: true

Size: 1.06 KB

Versions: 1

Compression:

Stored size: 1.06 KB

Contents

# Ruby on Rails Integration with Jade
Forked from [mahipal/jade-rails](https://github.com/mahipal/jade-rails)

## What this fork introduces
This fork changes the way template is compiled.
It adds support of useful Jade features:
* [Jade includes](http://jade-lang.com/reference/includes)
* [Jade extends](http://jade-lang.com/reference/extends)
* [Jade inheritance](http://jade-lang.com/reference/inheritance)

## How it works
In [mahipal/jade-rails](https://github.com/mahipal/jade-rails) templates were compiled using Jade compiler with ExecJS. But ExecJS has some limitations to Node API and this restrics some Jade features.

Jade template can be alternatively compiled using [command line](http://jade-lang.com/command-line). This method is impemented in this fork.

## Installing
Install Jade globally via npm:

```bash
npm install -g jade
```

Add to your Gemfile:
```ruby
gem 'jade-rails', github: 'yivo/jade-rails'
```

Require Jade runtime.js:

```js
//= require jade/runtime
```

## Rest of README
[Check mahipal/jade-rails](https://github.com/mahipal/jade-rails#configuring)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jade-rails-adapter-1.11.0 README.md