0.04
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Convert any site to a simple rack app
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
~> 5.4.1
~> 10.3.2
~> 1.18.0

Runtime

~> 1.0.1
~> 0.1.0
~> 0.11.0
~> 1.6.3.1
 Project Readme

theme_bandit

Code Climate Test Coverage

Enjoy rapid prototyping with theme bandit ❤️

Wordpress themes are beautiful - now you can easily convert your favorite themes to a small ruby app

This gem converts any site template (Wordpress, Joomla, HTML) into a simple sinatra rack application.

Usage from the command line: bandit

  • Select a url to download
  • Select a templating engine (erb, haml, slim)
  • Start your rack app!

You wouldn't download a website ... would you?!

CLI usage

bandit -> Builds a rack application in a theme directory of your current working directory.

TODO / Coming Soon

  • Support for binaries (images + fonts + embeds)
  • Fetch asynchronous resources
  • Support for multiple pages

template issues

Not all templating engines play nicely with html. If you run into templating issues, erb will be your safest bet because it renders as pure html.

Example: The gem converts html for page A to slim, erb, or haml. If the html for page A is messy, it will produce bad slim and cause the application to blow up until adjusted.

installation

Add this line to your application's Gemfile:

gem 'theme_bandit', '~> 0.0.9'

And then execute:

$ bundle

Or install it yourself as:

$ gem install theme_bandit

tests

bundle exec rake test

contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request