Comments (4)
OK, I've worked it out.
I sent a pull request here: #41
Now I can do this:
<% cache([@_gretel_renderer.breadcrumb_key, @_gretel_renderer.breadcrumb_args]) do %>
<% breadcrumbs.tap do |links| %>
<% if links.any? %>
<div class="breadcrumbs breadcrumbs-fixed" id="layout-breadcrumbs">
...
</div>
<% end %>
<% end %>
<% end %>
which seems to work OK.
from gretel.
Thanks for the idea. I will think about how we can support this in Gretel 👍
from gretel.
👍 for the idea - it definitely needs to be possible to use the fragment cache on breadcrumbs in this way.
However, I don't think #41 should be the ultimate solution; I think there are better ways Gretel can handle this.
I'll update this issue soon with my thoughts.
from gretel.
Issue was moved to the new repository: link
from gretel.
Related Issues (20)
- Status of the project HOT 9
- Add a screenshot of a generated breadcrumb to the README.md HOT 2
- Nullable parent for specific crumb HOT 5
- Bootstrap 4 HOT 2
- is this thread-safe? HOT 4
- current tag link is relative to the route not the url provided? HOT 2
- alias_method_chain is deprecated in Rails 5 HOT 10
- using jRuby yields uninitialized constant error HOT 1
- Using tap instead breadcrumbs blocks HOT 4
- Add examples page to dummy rails application?
- breadcrumbs not accepting any arguments HOT 3
- Could you release a new version? HOT 3
- Foundation 6 support ? HOT 1
- Support of I18n HOT 2
- Do not depend on "rails" gem, depend on parts of Rails that Gretel uses HOT 2
- Update `Building the breadcrumbs manually` example HOT 1
- Outside Div HOT 1
- Specify class for link HOT 3
- Add breadcrumbs in controller actions
- Subtle test order dependency when mixing Gretel breadcrumbs with TrailBlazer Cells HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gretel.