4 ms·
What's really needed is a WYSIWYG GUI editor that exports all (custom and editable) fields to JSON, so you can use something like Middleman to generate a static
by macandcheese 10y ago
What's really needed is a WYSIWYG GUI editor that exports all (custom and editable) fields to JSON, so you can use something like Middleman to generate a static site based on that content.
This way, anytime someone updates and saves content through the GUI, a script will trigger and re-build your static site based on the new JSON file, and publish to s3. To completely decouple the editing experience (and those who create and maintain content) from the actual design and code, is the real ticket.
One day when I get some more time...
- mklappstuhl 10y agoMobileDoc might be interesting to you: https://github.com/bustlelabs/mobiledoc-kit https://github.com/bustlelabs/mobiledoc-kit
- paultannenbaum 10y agoAgreed. I had a project recently and was looking for something like this. There are "API first CMS" systems like Contentful and Prismic that could allow this, but they are paid services. A cool open source version that has plugins for middleman and other static site generators would be really cool.
- claviska 10y agoI think what you're referring to is called a "headless CMS", which is an interesting idea and something we can discuss as the project evolves. It may not be a good candidate for core, but a plugin that outputs the data in the format you're looking for wouldn't be that hard to build (once plugins land). For example, the existing internal API has a backup method that exports all MySQL tables to JSON files. The heavy lifting is already done for you. (It also wraps all your themes and uploads into a TAR along with the JSON files so you have a real, full backup — not just your post content.) I'd love to explore this more down the road :)
- subpixel 10y agoWhat you describe closely resembles Webhook (webhook.com), where the CMS updates Firebase, which spits out Json, triggering a build and a static site on Google cloud storage.