arbre icon indicating copy to clipboard operation
arbre copied to clipboard

An Object Oriented DOM Tree in Ruby

Results 18 arbre issues
Sort by recently updated
recently updated
newest added

Just started to play around with Arbre, and something I noticed right off the bat is it doesn't have out-of-the-box support for custom elements. Since that's part of the HTML...

I was wondering if arbre supports the [template tag.](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template) As far as I understood, this tag is missing here: https://github.com/activeadmin/arbre/blob/348763dfd5cc2ab220b7a8121319b21919ad7886/lib/arbre/html/html5_elements.rb#L4-L14 Can we add it?

I am facing this issue where I need to access current_user method that is returning different value as compared to @current_user. in erb templates current_user helper method is invoked as...

Hi. I see `Arbre::HTML::Tag#indent` in stackprof top and it confuses me. ``` Mode: cpu(1000) Samples: 172 (0.00% miss rate) GC: 33 (19.19%) ================================== TOTAL (pct) SAMPLES (pct) FRAME 33 (19.2%)...

Hello I try to do something like ``` user_with_link = link_to(user.email, [:admin, user]) h3 [user_with_link, v.event, l(v.created_at, format: :short)].join(', ') ``` and fails, becourse of geting "safe" first tag output...

Upvote this one pls, if u r using rubymine https://youtrack.jetbrains.com/issue/RUBY-24292 p.s. first time using issues of github, if it isn't place for this sorry! (and tell me when I can...

See activeadmin/activeadmin#2689 > The unused in-memory DOM representation more than doubles the memory usage required to service a request and complicates the implementation to having a seperate buffer per element....

## example that does not work: app/helpers/application_helper.rb ``` ruby module ApplicationHelper def arbre(&block) Arbre::Context.new({}, self, &block) end def static_pie_chart(data) arbre do div class: 'd3-pie-chart', 'data-series': data end end end ```...

Arbre uses `para` for `` tags because `p` is a Ruby method, similar to `puts`. I understand the unwillingness to override Ruby methods, but I think it's less surprising than...

Cross-posting here: https://github.com/activeadmin/activeadmin/issues/4360