Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/copongcopong/KxFoxxWeb
Foxx-based crud cms (arangodb)
https://github.com/copongcopong/KxFoxxWeb
arangodb arangodb-services foxx
Last synced: 20 days ago
JSON representation
Foxx-based crud cms (arangodb)
- Host: GitHub
- URL: https://github.com/copongcopong/KxFoxxWeb
- Owner: copongcopong
- Created: 2017-05-12T01:03:32.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-12T10:40:42.000Z (over 7 years ago)
- Last Synced: 2024-11-30T04:24:45.357Z (27 days ago)
- Topics: arangodb, arangodb-services, foxx
- Language: JavaScript
- Size: 30.3 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# KxFoxxWeb
Arangodb's Foxx-based CRUDe cms
## Middleware
- `lib/middleware-template`
- Handlebars Templating
- Response.view(pageFileOr$PagesDocument, data, layoutFileOr$ContentDocumentByName)
- *pageFileOr$PagesDocument*
- pageFile ending in `.html` inside `views/`
- OR Pages document (`_key` = `page-name`) with `content` (and or) `data` attribute;
- `data` attribute will be available as {{$local.ATTRIBUTE}}
- *layoutFileOr$ContentDocumentByName*
- layoutFile ending in `.html` inside `views/layouts` (must have `{{{content}}}` )
- OR Contents document with `type` = `layout` and `content` attribute
- available `data` in layout can come from `models/global.json` (and or) Contents document with `type=data` and `name=global`## Routes
- `homepage` _(default /)_## Collection and Document
- Contents: _requires `type` and `name`_
- Pages _`_key` as page-name, and DO NOT auto-generated;_
- Users# License
Copyright (c) 2017 Copongcopong
License: whatever