RubyGems Navigation menu

cyberweb 0.0.271

This is a web framework called Cyberweb, of about medium size - about ~290kb, including the documentation and examples. This framework is still not complete at all, nor is it anywhere near finished, and it is not fully documented either - but I use it since a few years to augment my own Ruby-CGI scripts, and it works ok-ish for those basic needs. I still use ruby .cgi scripts - while .cgi scripts are not that common to see past the 2015 era, they are still extremely simple, and I really really highly value simplicity. If anyone else may find this project useful, feel free to give it a try and provide some feedback if you so desire to - I will then have a look and see where the project can be improved. The release 0.0.5 added a dependency on a project called html_tags, which was created in order to separate the generation of HTML tags out of the rest of the framework. The idea is to hold a full HTML page in a special object, the so called "web_object", and to then .serve() said object when it is required. Which essentially is done through a .cgi page. To include the cyberweb project on a website, in your .cgi script for instance, do use this line: require 'cyberweb/autoinclude' You can then populate the @web_object object, which resides in the main Cyberweb-namespace, and which is also aliased through a convenience method called w(). If you autoinclude Cyberweb then you can use the w() method. This allows you to describe a webpage, such as by issuing the following code: w { title 'My first homepage' body_css 'mar1em' h2 'Hello World!' use_jquery } Note that this should happen on separate lines - the description here for the gem does not replace newlines with html <br>. Inside w {} you can issue special instructions, such as use_jquery or disable_webimages. The former allows us to use jquery, the latter disables webimages. (Webimages are small icons that I find myself to use a lot. If you wish to use these images, have a look at ) A commandline program in bin/cyberweb exists. This allows you to generate a new skeleton such a via: cyberweb foo.cgi But you can also use it to edit the configuration setting, via: cyberweb edit Try both out if you feel like it. You can also get some feedback over what it can do, via "cyberweb --help". There also exists an interactive cyberweb-shell, which may be used to test out various things (it is rather unfinished though). Keep in mind that you can modify a lot of the configuration through the yaml files stored in the configuration/ subdirectory. Greek letters can now be used - &sigma; would show the small sigma character; the constant SIGMA_SMALL or just SIGMA will allow you to refer to this constant. You can output a table with these greek letters by doing this: Cyberweb.show_greek_letters If you wish to make use of SVG, you have to install the svg_paradise project. Then, you can use it such as: ee This will output a SVG circle. Do note that you can customize this; simply have a look for the SVG Paradise project for more documentation pertaining to this. If you have specific suggestions to make this gem more useful for others, please drop me an email at: Thank you.


  1. 0.0.271 - June 18, 2018 (295 KB)
  2. 0.0.270 - May 28, 2018 (295 KB)
  3. 0.0.269 - May 28, 2018 (295 KB)
  4. 0.0.268 - May 24, 2018 (295 KB)
  5. 0.0.267 - May 24, 2018 (295 KB)
Show all versions (261 total)


  • Robert A. Heiler



SHA 256 checksum:


Total downloads 119,822

For this version 140

= Copy to clipboard Copied!




Required Ruby Version: >= 2.5.1

Required Rubygems Version: >= 2.7.7