Warning
Starting from CubicWeb version 4.0 all code related to generating html views has been moved to the Cube cubicweb_web.
If you want to migrate a project from 3.38 to 4.* while still using all the
html views you need to both install the cubicweb_web cube AND add it to
your dependencies and run add_cube('web')
.
cubicweb_web can be installed from pypi this way:
pip install cubicweb_web
We donât plan to maintain the features in cubicweb_web in the long run; we are moving to a full javascript frontend using both cubicweb_api (which exposes a HTTP API) and @cubicweb/client as a frontend javascript toolkit.
In the long run cubicweb_api will be merged inside of CubicWeb.
Web Frontend Development#
In this chapter, we will describe the core APIs for web development in the CubicWeb framework.
- Publisher
- Controllers
- The Request class (cubicweb_web.request)
- RQL search bar
- The View system
- Configuring the user interface
- Ajax
- Javascript
- Conventions
- Server-side Javascript API
- Javascript events
- Important javascript AJAX APIS
- A simple example with asyncRemoteExec
- Anatomy of a reloadComponent call
- A simple reloadComponent example
- Anatomy of a loadxhtml call
- A simple example with loadxhtml
- A more real-life example
- Javascript library: overview
- API
- Testing javascript
- CSS Stylesheet
- Edition control
- The facets system
- Internationalization
- The property mecanism
- HTTP cache management
- Locate resources
- Static files handling