RubyGems Navigation menu

cyberweb 0.0.111

This is a web framework called Cyberweb, of about medium size - about ~241kb, including the documentation. This framework is still not complete, 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 they .cgi scripts are not that common to see in past 2015 days, they are still very simple, and I like 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 } 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 http://shevegen.square7.ch/STD.tar.xz ) 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). If you have specific suggestions to make this gem more useful for others, please drop me an email at: shevegen@gmail.com. Thank you.

Versions:

  1. 0.0.111 - August 1, 2015 (242 KB)
  2. 0.0.110 - July 30, 2015 (242 KB)
  3. 0.0.109 - July 28, 2015 (241 KB)
  4. 0.0.108 - July 28, 2015 (241 KB)
  5. 0.0.107 - July 27, 2015 (240 KB)
Show all versions (104 total)

Authors:

  • Robert A. Heiler

Owners:

A14d1bca90d7ebeda50dca99aab381b9

Sha 256 checksum:

b2afbabf15047b58662380f5f2d507b4be6d159895d4f922c47df72dfa86afb7

Total downloads 32,271

For this version 45

Show all versions (104 total)

Required Ruby Version: >= 2.2.0

License:

GPL 2

Gemfile:
= Copy to clipboard Copied!

install:
= Copy to clipboard Copied!

Links: