Hiccdown Development Notes

Dennis Hackethal started this discussion over 1 year ago.

Archive​·​Search​·​Activity

Notes about developing the Ruby gem Hiccdown.

  Log in or sign up to participate in this discussion.
With an account, you can revise, criticize, and comment on ideas, and submit new ideas.

Discussions can branch out indefinitely. You may need to scroll sideways.
Dennis Hackethal’s avatar

Could the errors around layouts be related to this?

Criticism
Dennis Hackethal’s avatar

Hiccdown should have support for ids and class names in the tag symbol. Like Hiccup.

ruby
[:'div#my-id.my-class.another-class']
# => <div id="my-id" class="my-class another-class"></div>

It should also allow mixing:

ruby
[:'div#my-id.my-class.another-class', {id: 'override', class: 'additive'}]
# => <div id="override" class="my-class another-class additive"></div>

In other words, the id from the hash would override the id from the symbol, and the class from the hash would be added to the classes from the symbol.

Criticism
Dennis Hackethal’s avatar
 This idea has an active bounty worth USD 150.00. Log in to participate.

Hiccdown is bug-free.

Dennis Hackethal’s avatar

Could the application layout live in ApplicationHelper#layout?

Dennis Hackethal’s avatar

Is there a way to teach user-built helpers how to process Hiccdown? Or maybe intercepting capture already took care of this?

Dennis Hackethal’s avatar

Redirects result in two additional requests, the first of which is a turbo-stream request that renders nothing, thus (presumably) prompting the browser to make another request for the same resource.

This? https://stackoverflow.com/a/74071278

Criticism
Dennis Hackethal’s avatar

Some Reagent-like way to make things reactive using proc as first element? And then the server keeps track of which procs have been rendered, which items have changed, and re-renders that part of the template in a turbo stream?

Dennis Hackethal’s avatar

When an empty block is passed to render, it results in an empty tag '<>'

Criticism