-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal: Support Content Collection API #69
Comments
our Spearly CMS Response data is depend on each content type, however this response includes the basic information of content. So we specify the following abstract structure of content:
|
I implementing the prototype of this content collection. Then we might need to the following case: cms-optionn-If the source embed syntax use the cms-loop and cms-itemThere are two pattern which getting the content:
An above pattern, we need to switch the return value. |
At the moment spear use the sequenceDiagram
Spear->>Spear: Initialize
Spear->>+cms-core: instanize
Spear->> Spear : parseElements
Spear->>+cms-core: generateList(w/ DOM and content-type)
cms-core->>+SpearlyCMS: get content list
SpearlyCMS-->cms-core : response
cms-core->>cms-core: generate list html
cms-core-->Spear: Response(Embed HTML)
So I guess |
Ah, we can inject alternative |
What is this feature?
This PR make spear to support content API feature:
spear.config.js
contentCollectionPlugin
keyNote that:
Abstracted Content Object
Why do we need this feature?
At the moment, spear is specialized
Spearly CMS
. So we might need to support other CMS or local files.Especially, If we provide spear docs, contributor CAN NOT have the way to contribute for documentation.
The text was updated successfully, but these errors were encountered: