Sha256: 7a9c3dbcd6ae3874590d952c41b33837afc4e8442ba1319ae74ee881ac92ff23

Contents?: true

Size: 1.06 KB

Versions: 10

Compression:

Stored size: 1.06 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 Dir.tmpdir + '/vedeu_views_dsl.log'
    renderers(Vedeu::Renderers::Terminal.new(
                filename: Dir.tmpdir + '/vedeu_empty.out',
                write_file: true),
              Vedeu::Renderers::JSON.new(
                filename: Dir.tmpdir + '/vedeu_empty.json'),
              Vedeu::Renderers::HTML.new(
                filename: Dir.tmpdir + '/vedeu_empty.html'),
              Vedeu::Renderers::Text.new(
                filename: Dir.tmpdir + '/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

10 entries across 10 versions & 1 rubygems

Version Path
vedeu-0.8.31 examples/views/empty_template.rb
vedeu-0.8.30 examples/views/empty_template.rb
vedeu-0.8.29 examples/views/empty_template.rb
vedeu-0.8.28 examples/views/empty_template.rb
vedeu-0.8.27 examples/views/empty_template.rb
vedeu-0.8.26 examples/views/empty_template.rb
vedeu-0.8.25 examples/views/empty_template.rb
vedeu-0.8.24 examples/views/empty_template.rb
vedeu-0.8.23 examples/views/empty_template.rb
vedeu-0.8.22 examples/views/empty_template.rb