Sha256: 872a1709ebfe4cdced18beabfa5df76e40cec744d7472c89b6cf51cae6a8da20

Contents?: true

Size: 363 Bytes

Versions: 8

Compression:

Stored size: 363 Bytes

Contents

#!/usr/bin/env ruby
require 'flammarion'

pwd = Dir.pwd
f = Flammarion::Engraving.new(title:pwd)
f.orientation = :horizontal
f.markdown("Choose a file ->")
f.pane("files", weight:0.3)

(Dir["**/*.md"] + Dir["**/*.markdown"]).each do |file|
  f.pane("files", weight:0.3).button(file) do
    f.markdown(File.read(file), replace:true)
  end
end

f.wait_until_closed

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
flammarion-utils-0.2.1 bin/markdown-browser
flammarion-utils-0.2.0 bin/markdown-browser
flammarion-utils-0.1.14 bin/markdown-browser
flammarion-utils-0.1.13 bin/markdown-browser
flammarion-utils-0.1.12 bin/markdown-browser
flammarion-utils-0.1.11 bin/markdown-browser
flammarion-utils-0.1.10pre2 bin/markdown-browser
flammarion-utils-0.1.10pre bin/markdown-browser