Sha256: 141cea5c2e2d88fd9b344a361a5f5ec21cbf78afc8882bd3ae0e844c7808de89

Contents?: true

Size: 511 Bytes

Versions: 1

Compression:

Stored size: 511 Bytes

Contents

require "bundler/gem_tasks"
task default: :spec

desc "Regenerate the example HTML in example/example.html"
task :generate_example do
  require_relative "lib/govuk_markdown"

  markdown = File.read("example/example.md")
  html = GovukMarkdown.render(markdown)

  File.write("example/example.html", ERB.new(File.read("example/example_layout.html.erb")).result(binding))
  sh "open example/example.html"
end

task :gem_version do
  require_relative "lib/govuk_markdown/version"

  puts GovukMarkdown::VERSION
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
govuk_markdown-0.1.0 Rakefile