Repository URL to install this package:
Version:
0.2.0 ▾
|
lib |
MIT-LICENSE |
README.md |
Rakefile |
Export Neoteric CMS projects to markdown. The goal is to provide a simple way to generate a markdown document from a given record. Generally through mapping attributes to front matter and compiling all the body content into an HTML document and converting to markdown.
Add this line to your application's Gemfile:
gem "moving_day"
And then execute:
$ bundle
Or install it yourself as:
$ gem install moving_day
Then install with
$ bin/rails g moving_day:install
If you have custom Neoteric Block types, you can extend the BlockExtruder with methods for compiling its html in the initializer provided
Generate an exporter for a model
$ bin/rails g moving_day:exporter Event
This generates an exporter class that can be customized. See the base exporter for the API provided and extend as needed.
It also generates an export task in your application's lib/tasks/moving_day.rake
that can also be
customized. After reviewing and adapting the generated code, you can export a
model with:
# Using example above $ bin/rails moving_day:events
The gem is available as open source under the terms of the MIT License.