Sha256: 7f78e04738ca9911763f1fc07b2935018786634011df5580aa189996d7fa493e

Contents?: true

Size: 1.02 KB

Versions: 16

Compression:

Stored size: 1.02 KB

Contents

#!/usr/bin/env ruby

# frozen_string_literal: true

require 'bundler/setup'
require 'vedeu'

class DSLApp

  Vedeu.bind(:_initialize_) { Vedeu.trigger(:_refresh_) }

  Vedeu.configure do
    debug!
    log '/tmp/vedeu_views_dsl.log'
    renderers(Vedeu::Renderers::Terminal.new(
                filename: '/tmp/vedeu_empty.out',
                write_file: true),
              Vedeu::Renderers::JSON.new(
                filename: '/tmp/vedeu_empty.json'),
              Vedeu::Renderers::HTML.new(
                filename: '/tmp/vedeu_empty.html'),
              Vedeu::Renderers::Text.new(
                filename: '/tmp/vedeu_empty.txt')
              )
    run_once!
    standalone!
  end

  Vedeu.interface :test1_interface do
    border do
      title 'Test 1'
    end
    geometry do
      x  4
      y  3
      xn 34
      yn 8
    end
  end

  Vedeu.render do
    view(:test1_interface) do
      lines do
      end
    end
  end

  def self.start(argv = ARGV)
    Vedeu::Launcher.execute!(argv)
  end

end # DSLApp

DSLApp.start

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
vedeu-0.8.21 examples/views/empty_template.rb
vedeu-0.8.20 examples/views/empty_template.rb
vedeu-0.8.19 examples/views/empty_template.rb
vedeu-0.8.18 examples/views/empty_template.rb
vedeu-0.8.17 examples/views/empty_template.rb
vedeu-0.8.16 examples/views/empty_template.rb
vedeu-0.8.15 examples/views/empty_template.rb
vedeu-0.8.14 examples/views/empty_template.rb
vedeu-0.8.13 examples/views/empty_template.rb
vedeu-0.8.12 examples/views/empty_template.rb
vedeu-0.8.10 examples/views/empty_template.rb
vedeu-0.8.9 examples/views/empty_template.rb
vedeu-0.8.8 examples/views/empty_template.rb
vedeu-0.8.7 examples/views/empty_template.rb
vedeu-0.8.6 examples/views/empty_template.rb
vedeu-0.8.5 examples/views/empty_template.rb