Simple batch processor that takes 2 xml files as input and generates html files with information from the xml elements in a asynchronous way
MIT License
Simple batch processor that takes 2 xml files as input and generates html files with information from the xml elements and uses celluloid to generate files in asyncronous way
taxonomy.xml holds the information about how elements are related to each other.
destinations.xml holds the actual text content for each element.
Each generated web page has:
Element text content.
Navigation that allows the user to browse to elements that are higher in the taxonomy
Navigation that allows the user to browse to destinations that are lower in the taxonomy
Rails >3.0 only. MRI 1.9.x, 2.x
Add the following to your Gemfile :
gem "tax_generator"
And use it like this in your code:
TaxGenerator::Application.new.run(options)
or like this:
processor = TaxGenerator::Processor.new(options)
processor.work
where options should be a hash that can contain this keys:
This can also be run from command line using following command:
gem install tax_generator
tax_generator -i INPUT_DIR -o OUTPUT_DIR -t TAXONOMY_FILENAME -d DESTINATIONS_FILENAME
-i or --input_dir
-o or --output_dir
-t or --taxonomy_filename
-d or --destinations_filename
To test, do the following:
Please log all feedback/issues via Github Issues. Thanks.
== Copyright
Copyright (c) 2015 bogdanRada. See LICENSE.txt for further details.