cubicweb_web - And how to use it with CubicWeb
Contents
cubicweb_web - And how to use it with CubicWeb#
cubicweb_web is a cube which used to be part of CubicWeb. It provides a lot of generic HTML views and a controller mechanism.
First steps#
Routing#
CubicWeb offers two different ways of routing : one internal to CubicWeb and a one with the pyramid framework.
Principle:
cubicweb and pyramid
the CW request object
encapsulation of the CW request in the pyramid request
bw_compat and the options to use, fallback when CW doesn’t find anything
CubicWeb routing:
Pyramid routing:
general principles
predicates
tweens
content negociation
Front development#
With Javascript / Typescript (using React):
general principle
how to install and integrate js tooling into CW
cwelements
rql browser
With Pyramid:
general integration with CubicWeb
example of usages with CW
With CubicWeb Views:
Facets
How to use javascript inside CW views
Customize CSS
RDF:
the RDF adaptator
RDFLib integration into CW
Security#
Security:
Permissions management with Pyramid
Cubicweb configuration files#
Base configuration:
Advanced configuration:
Common Web application tools#
Test
Caching
Internationalization
Full text indexation