hyperstack-org / hyperstack-org/hyperstack

top level rails component should automatically pass view helper values

Aberta
#210 0 comentários 0 reações 0 responsáveis Ver no GitHub
enhancement
Linguagem predominante
JavaScript
Estrelas
538
Forks
41
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

For example
```haml
= mount_component 'Header', controller_name: controller_name, action_name: action_name, flash: flash.as_json
= yield
```
is pretty verbose
instead, just have the top_level_rails component introspect the component being mounted, and
1. if the param is not being provided and
2. if that there is a view_helper with that name, then send the value of the view_helper.

You still have to declare the params in the Component, that is not too bad. Saying it 4 times to access it once, is toooooo much.

Note that is will need #219 to work nicely (i.e. flash.as_json has to be automagic)

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.