rx/presenters

View on GitHub
app/demo/shared/code.pom

Summary

Maintainability
Test Coverage
Voom::Presenters.define(:code) do
  if context[:file]
    grid do
      column 12 do
        body ''
        expansion_panel 'Show Source' do
          content do
            form do
              source = File.read(context[:file])
              text_area full_width: true, rows: source.split("\n").size do
                value source
                label 'Source'
              end
            end
          end
        end
      end
    end
  end
end