copongcopong / KxFoxxWeb

Foxx-based crud cms (arangodb)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Foxx-based crud cms (arangodb)


Languages

Language:JavaScript 84.2%Language:CSS 14.7%Language:HTML 1.2%