Giter VIP home page Giter VIP logo

amphora-amp's Introduction

Clay

Clay is an open-source CMS created by New York Media powering New York Magazine, Vulture, The Cut, Grub Street and Slate.

Clay is comprised of modules available on npm, but the core system is comprised of Kiln, the editing interface, and Amphora, the REST API. For more information on the two modules please see documentation on each. The documentation in this space is meant to explain core concepts of Clay, but for a deeper technical dive you can explore the documentation for each of the modules themselves.

amphora-amp's People

Contributors

dependabot[bot] avatar jonwinton avatar jpope19 avatar reubenson avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

amphora-amp's Issues

disentangle filename conventions for renderers and variations

per discussion in slack amphora-amp should use a different file name pattern to more harmoniously co-exist with component variations - it should be possible to specify a renderer and a variation as separate parts of a stylesheet filename.

currently AMP stylesheets are treated as component variations which makes them selectable options for other renderers, but we'd never want the AMP stylesheet to be used by the html renderer

componentVariation support

in amphora-html, componentVariation defaults to the component name if that property is not defined on the component instance. this logic is missing in amphora-amp, which can lead to un-intended consequences when developers are not aware of this discrepancy

Support plugins (similar to amphora-html)

It would be great if amphora-amp supported plugins in the same way that amphora-html does. Plugins export a render function that takes ref, data, locals and allows them to filter or move refs within the tree before they are rendered. Our use case would be for those components where we would want them in the head of the page, but amp only supports them in the body (namely, analytics components that we want to run before ads).

This was already implemented for amphora-html and would ideally be a similar PR.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.