Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slim/haml support ? Breadcrumbs don't display #51

Closed
benoitr opened this issue Mar 10, 2015 · 2 comments
Closed

Slim/haml support ? Breadcrumbs don't display #51

benoitr opened this issue Mar 10, 2015 · 2 comments

Comments

@benoitr
Copy link

benoitr commented Mar 10, 2015

It seems there is an issue using slim (my case) or haml (please see the following links below) to display the breadcrumbs rendered.

http://stackoverflow.com/questions/21946362/rails-gretel-not-rendering
http://stackoverflow.com/questions/18003344/make-breadcrumb-with-gretel-in-rails

Not sure it is effectively related to these template engines but didn't find how to debug it.

@futhr
Copy link
Contributor

futhr commented Mar 10, 2015

Hi @benoitr, I use slim for the template parts and have no issues with it.

Examples:

= raw breadcrumbs style: :bootstrap, display_single_fragment: true
- breadcrumbs(style: :bootstrap, display_single_fragment: true, autoroot: false).tap do |links|
  - links.to_a.each_with_index do |link, index|
    - if index == 0
      - content_for(:header_summary) do
        small= link.text
    - else
      - content_for(:header_nav) do
        li= link_to_if link.url, link.text, link.url

@benoitr
Copy link
Author

benoitr commented Mar 10, 2015

Get it! Thanks so much!!

@benoitr benoitr closed this as completed Mar 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants