First stab at an embeddabble cms
###USE CASE
- Cross model data user notes.
- Inline user help text anywhere.
- Some social thing.
- Descriptions of things.
- So like, in a store, maybe you could have any CEO able to just change prod descriptions of stuff always.
- Summary page "notepad"
###Example Usage
That's it. tinycms
takes care of the rest (document.querySelectorAll("[data-tinycms-id]")
) see index.html for example usage.
###Running Example Don't have one. You will have to run the app to use it, it has an ajax backend contract:
GET view/THINGS -> HTML
POST edit/THINGS {data: HTML} -> ''
###Getting Started I imagine reusing the js for the most part, editing it to include CSRF for post requests. But for the most part, it's supposed to be simple so you can copy what you need.
###Caveats
- No User access rights.
- No html sanitizing. Anything goes.
- No Listing. No way to get all pages or whatever.
- css? not sure why the marker span for example needs it's own?