Foxx-based crud cms (arangodb)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
lib
models
routes
scripts
test
views
README.md
main.js
manifest.json

README.md

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