Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/necojackarc/breadcrumbs_on_rails-json_ld

JSON-LD plugin for Breadcrumbs on Rails
https://github.com/necojackarc/breadcrumbs_on_rails-json_ld

breadcrumbs json-ld rails

Last synced: 2 days ago
JSON representation

JSON-LD plugin for Breadcrumbs on Rails

Awesome Lists containing this project

README

        

# BreadcrumbsOnRails::JsonLd

[![Build Status](https://travis-ci.org/necojackarc/breadcrumbs_on_rails-json_ld.svg?branch=master)](https://travis-ci.org/necojackarc/breadcrumbs_on_rails-json_ld)
[![Maintainability](https://api.codeclimate.com/v1/badges/ff9c59d2fa0c960764ca/maintainability)](https://codeclimate.com/github/necojackarc/breadcrumbs_on_rails-json_ld/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/ff9c59d2fa0c960764ca/test_coverage)](https://codeclimate.com/github/necojackarc/breadcrumbs_on_rails-json_ld/test_coverage)

BreadcrumbsOnRails::JsonLd provides a custom builder for [BreadcrumbsOnRails](https://github.com/weppos/breadcrumbs_on_rails).

## Usage
Pass `builder: BreadcrumbsOnRails::JsonLd::Builder` option to `render_breadcrumbs` and
enclose them with `script type="application/ld+json"` tag as follows:

```erb

<%= render_breadcrumbs builder: BreadcrumbsOnRails::JsonLd::Builder %>

```

## Installation
Add this line to your application's Gemfile:

```ruby
gem 'breadcrumbs_on_rails-json_ld'
```

And then execute:

```bash
$ bundle
```

Or install it yourself as:

```bash
$ gem install breadcrumbs_on_rails-json_ld
```

## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).