Sha256: ac720154832377f6131fecadc59e27ca4d99353f07b93f597c020057097aa091

Contents?: true

Size: 816 Bytes

Versions: 2

Compression:

Stored size: 816 Bytes

Contents

require_relative 'helpers/indented_grid'

Voom::Presenters.define(:index) do
  helpers Demo::Helpers::IndentedGrid
  attach :top_nav

  indented_grid do
    headline 'COmmon PResenter Language (COPRL) Ruby Demo', id: :headline
    subheading 'COPRL is to HTML what C is to assembly'

    body ['A presenter describes a user interface using DSL.',
          'The presenter is evaluated and a presenter object model (POM) is generated. The POM can be serialized as JSON.',
          'A client that renders POM can display the given user interface.']

    body 'To get started checkout the components and events.'

    subheading 'For example this is the complete presenter DSL for this page:', level: 2

    source = File.read(__FILE__)
    body <<~HEREDOC
      ```
        #{source}  
      ```
    HEREDOC
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
voom-presenters-2.1.0 app/demo/index.pom
voom-presenters-2.0.3 app/demo/index.pom