Activity
Dennis Hackethal marked idea #330 as a criticism. The revision supersedes the old version.
No changes to the text.
Hiccdown methods should live in their own, separate classes. How about they are called ‘displays’?
ruby
class ProductsDisplaydef index vc, # …vc.some_helper_methodendend
Behind the scenes, the Hiccdown gem would need to make the instance variables available to the display class:
ruby
display = @display_module.newview_context.instance_variables.each do |iv|display.instance_variable_set(iv,view_context.instance_variable_get(iv))end
Then:
ruby
class ProductsDisplaydef index vc, # …vc.some_helper_method(@products)endend