Hiccdown Development Notes

Dennis Hackethal started this discussion about 2 years 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
Dennis HackethalOP​·​#859​·​

Could the errors around layouts be related to this?

Criticism
Dennis Hackethal’s avatar
Dennis HackethalOP​·​#1984​·​

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
Dennis HackethalOP​·​#4327​·​
 This idea has an active bounty worth USD 150.00. Log in to participate.

Hiccdown is bug-free.

Dennis Hackethal’s avatar
Dennis HackethalOP​·​#4328​·​

Could the application layout live in ApplicationHelper#layout?

Dennis Hackethal’s avatar
Dennis HackethalOP​·​#4329​·​

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
Dennis HackethalOP​·​#4330​·​

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
Dennis HackethalOP​·​#4332​·​

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
Dennis HackethalOP​·​#4333​·​

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

Criticism