Categories
Uncategorized

What is Raks?

Raks is a collection of tools for working with JavaScript libraries and for creating small and modular JavaScript libraries. It is an attempt at a modular framework for building small libraries that is easy to use. Raks is completely inspired by the ScalaJS ecosystem. It is primarily designed in Scala.

Raks uses the following libraries:

Tailors for common tasks with minimal boilerplate, including:

jQuery’s bootstrap

Bootstrap 3.0 (and earlier)

jQuery 2.x

Backbone.js

Backbone.js 3.x

JQuery and jQuery Bootstrap for front-end

For back-end support, Raks also includes some additional helpers (see the file examples/raks-helpers.rkt).

Raks uses the following patterns for data-binding:

import * as a @;

import * as b;

import * as c;

import * as d;

import * as e;

import * as f;

import * as g;

import * as h;

import * as i;

import * as j;

import * as k;

import * as l;

The raks.core.rkt uses the following pattern to import an object:

import * as a @;

import * as b;

import * as c;

import * as d;

import * as e;

import * as f;

import * as g;

import * as h;

import * as i;

import * as j;

import * as k;

import * as l;

The rak.models.rkt uses this pattern so that an object can be imported as an instance of an API in a generic fashion as needed. For example, if you need an API class that can act in the same way as a Person, this class can be imported as Person::API class.

The rak.rkt uses this pattern to import an instance of an API with an instance of an interface, like Person::API::User . An example of this pattern would be Person::API::User.new .

The rak.rkt uses this pattern with the rak.core.rkt to import an API model as an object of class API::API .