This document introduces ‘QuarterMaster’ — a REBOL-based web framework currently under development. This document is subject to change.
The QuarterMaster Web Framework
QuarterMaster is a Web Framework based on the ‘Model-View-Controller’ application pattern. It is written in REBOL and is designed 1) to have as small a footprint as it can get away with, 2) to install without effort, 3) to leverage the highly expressive REBOL messaging language.
In addition to the Introduction, there is an overview of the framework below, and some pattern recipes:
The Model component is open ended. Built in is a flat-file database scheme called ‘RoughCut’ that is used to manage users and sessions. RoughCut uses the ‘Active Record’ record pattern. While RoughCut can be used to manage application data, QM is a thin web framework built on top of REBOL and as such any number of disparate systems can be bound together with the succinct REBOL messaging language.
The View component primarily uses REBOL Server Pages. Therefore all stages of a QM application can be written in REBOL.
Additionally, Make-Doc can be used to treat user input with schemes that range from user interfaces to sanitised comments.
The Controller component is a simple dispatcher with authentication tests. Included is an intuitive interface to both HTTP request and response.
QuarterMaster is brought to you in part by:
- The transformative language that makes QM possible.
- REBOL Developers
- Too many individuals to name drop, but the Mailing List and AltME forum are invaluable sources of rapid, insightful and friendly feedback.
- A masterful bliki (blog/wiki) that influenced many of QM’s original goals.
QuarterMaster in Action
A sample QuarterMaster application.
Title: "Widgets Database Schema"
tax: 1.1 ; tax multiplier
record: make record [
after-tax?: does [tax * get 'cost]
Title: "Widgets Controller"
action "list" does [
list: copy widgets
<table><% foreach widget list [ %>
<td><%= widget/get 'name %></td>
<td><%= widget/get 'price %></td>
<td>(with tax <%= widget/after-tax? %>)</td>
<% ] %></table>
The main QM script is licensed under Creative Commons Attribution/Share-Alike License.
Components contained on this site may contain their own license as per their REBOL header. If not, feel free to use, alter, share, or not.