Arangodb's Foxx-based CRUDe cms
lib/middleware-template
- Handlebars Templating
- Response.view(pageFileOr$PagesDocument, data, layoutFileOr$ContentDocumentByName)
- pageFileOr$PagesDocument
- pageFile ending in
.html
insideviews/
- OR Pages document (
_key
=page-name
) withcontent
(and or)data
attribute;data
attribute will be available as {{$local.ATTRIBUTE}}
- pageFile ending in
- layoutFileOr$ContentDocumentByName
- layoutFile ending in
.html
insideviews/layouts
(must have{{{content}}}
) - OR Contents document with
type
=layout
andcontent
attribute- available
data
in layout can come frommodels/global.json
(and or) Contents document withtype=data
andname=global
- available
- layoutFile ending in
- pageFileOr$PagesDocument
homepage
(default /)
- Contents: requires
type
andname
- Pages
_key
as page-name, and DO NOT auto-generated; - Users
Copyright (c) 2017 Copongcopong
License: whatever