Sha256: ed8f39137e9c98fb5d84acd1d532113010faf20da62fbe7027ba1bcc35e5b410

Contents?: true

Size: 835 Bytes

Versions: 12

Compression:

Stored size: 835 Bytes

Contents

require_relative 'helpers/indented_grid'

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

  indented_grid do
    headline 'COmmon PResenter Language (COPRL) Ruby Demo - AKA Presenters', 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

12 entries across 12 versions & 1 rubygems

Version Path
coprl-3.0.0.beta.12 app/demo/index.pom
coprl-3.0.0.beta.11 app/demo/index.pom
coprl-3.0.0.beta.10 app/demo/index.pom
coprl-3.0.0.beta.9 app/demo/index.pom
coprl-3.0.0.beta.8 app/demo/index.pom
coprl-3.0.0.beta.7 app/demo/index.pom
coprl-3.0.0.beta.6 app/demo/index.pom
coprl-3.0.0.beta.5 app/demo/index.pom
coprl-3.0.0.beta.4 app/demo/index.pom
coprl-3.0.0.beta.3 app/demo/index.pom
coprl-3.0.0.beta.2 app/demo/index.pom
coprl-3.0.0.beta.1 app/demo/index.pom