Sha256: ef7a398dd4109d908980f15623900c6733b458e6cb013ea1c51124eeb1dce3bb
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 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.keymap '_global_' do key('q') { Vedeu.exit } 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.8.4 | examples/views/empty_template.rb |
vedeu-0.8.3 | examples/views/empty_template.rb |