{"repo":"clay/amphora","free":true,"listed":false,"github":"https://github.com/clay/amphora","clone":"git clone https://github.com/clay/amphora.git","description":"Middleware for Express that composes components into renderable pages","language":"JavaScript","stars":32,"topics":["clay","javascript","express","redis"],"license":"MIT","category":"databases-storage","readme_excerpt":"Introduction \"A new way to organize, edit, and deliver the web, one component at a time.\" Powering New York Magazine, Vulture, The Cut, Grub Street. Created by New York Media. Table of Contents Introduction Installation Usage Contribution Advanced Topics Introduction Amphora is a mixin for Express that: Composes components into renderable pages Uses any key-value store of your choice \\(e.g., Mongo, Redis, LevelDB, etc.\\) Provides an API for managing instances of components, uris, and pages Components are reusable, configurable, self-contained bits of the web. Amphora is a core part of New York Media's Clay project, an open-source content management system. It follows semver and is stable as of v1.0.0. Installation Usage Clay separates concerns into two main areas: components and sites. Create two new directories in your project: In your project's main server file \\(e.g. app.js \\), instantiate a new Amphora instance. For additional configuration, you may pass in an Express app / router. You can also override the default templating engine\\(s\\) with your own. How to create a component Components in Clay have the following structure: All of these files are optional. How to create a template The template you create is dependent on whichever renderer you'd like to use. The Clay Core team supports an HTML renderer using Handlebars template, but the choice is yours. Either request a renderer or build one on your own! How to create a schema Kiln uses a component's schema.yml to determ","default_branch":null,"files":null,"tree":[],"storefront":"/r/clay","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/clay/amphora/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}