0.7.1 • Published 5 years ago

@exportarts/prismic-span-renderer v0.7.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

prismic-span-renderer

npm

This library contains methods to transform CMS content from prismic.io to HTML which can be used in websites. It also provides models for common objects which appear in the Prismic ecosystem, such as API-responses or images.

This library targets Prismic's API v2.

Get started

yarn add -E @exportarts/prismic-span-renderer

Usage

Use the interfaces found in src/models/ to interact with the Prismic-API's response object. Extend them with your custom types.

Use the methods available in src/renderer/ to transform the objects from Prismic's API response to standard html.

More information about the motivation and how to use this library can be found in the docs/-folder.

Background and Vision

This library started in several webpage-projects in which we use the prismic CMS. Since we began copying more and more between projects and bug-fixes/enhancements got more time consuming with every copy, we decided to create a library which can be easily consumed in the main projects.

The goal is to cover more and more of the Prismic workflow in one library so that the consuming main projects only have to provide their custom data models.

Please note

This package is currently using ng-packagr which made it easy to handle npm packaging for now, since we use this lib solely in Angular applications anyway.

Feel free to contribute and make it usable in more projects.

0.7.1

5 years ago

0.7.0

5 years ago

0.6.0

5 years ago

0.5.0

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago