Documentation
The mojo.js documentation is structured into two parts, the tutorial everyone starts with, and multiple guides that explain all major features in detail.
Some parts of the documentation only use simplified single file web applications for examples, but that’s merely a convenience for the reader. Almost all features are exactly the same for full well-structured mojo.js applications.
Basics
Learning Web Technologies
All web development starts with HTML, CSS and JavaScript, to learn the basics we recommend the Mozilla Developer Network. And if you want to know more about how browsers and web servers actually communicate, there’s also a very nice introduction to HTTP.
Conventions
Variable names
For brevity and clarity, example variables will reflect the type of data the API uses. For instance,
ctx
to denote a Context object, andapp
to denote the App object.
Tutorial
-
A quick example driven introduction to the basic concepts of mojo.js.
Guides
-
Starting a single file prototype from scratch and growing it into a well-structured mojo.js application.
-
A more detailed introduction to the mojo.js router.
-
Generating content with the mojo.js renderer.
-
How to use the full featured HTTP and WebSocket user agent that ships with the mojo.js framework.
-
Cooking with mojo.js, recipes for every taste.
-
Become a part of the ongoing mojo.js development.
-
Answers to the most frequently asked questions.
Reference
-
An overview of the most commonly encountered mojo.js classes, helpers and hooks.
Spin-offs
These modules are not part of @mojojs/core itself, but have been designed to be used with it and are being developed under the same umbrella.
-
A fast and minimalistic HTML/XML DOM parser with CSS selectors.
-
A very fast embedded JavaScript template engine.
-
A convenient container class for file system paths.
Support
If you have any questions the documentation might not yet answer, don’t hesitate to ask in the Forum, on Matrix, or IRC.