-
Notifications
You must be signed in to change notification settings - Fork 14
HTTP Server
The official documentation has been moved to http://wiki.sarah.encausse.net/
.
.
.
.
.
.
.
.
SARAH use ExpressJS as an HTTP server. All HTTP Access will be routes to convenient resources.
All pages relies on EJS template engine. This engine is very easy to use and close to raw HTML. All server code is done in <h1><%= title %></h1>
Pages use a common layout with predefined header/footer:
- Bootstrap 3
- jQuery
- HTML5 headers
- ...
Plugins can provides multiple html components
If a index.html
is set then it will be displayed for plugin's documentation and available at http://127.0.0.1:8080/plugins/{plugin}
Portlets are displayed in the portal.
- portlet.html contains the front content (cool charts, ...)
- portlet_back.html contains the back (buttons, forms, ...)
A plugin can also provides it's own static assets available at http://127.0.0.1:8080/assets/{plugin}/*
.
And can also display blank pages (with header/footer) for files ending with .ejs
. These files are available at: http://127.0.0.1:8080/plugins/{plugin}/plugin.ejs