Open celesteh opened 7 years ago
OBVIOUSLY, setting the front page's html should have markdown support (kill me now) (Specifically: lists, paragraphs, headers)
Ok, should users be able to:
A PHP file will show them what they've got as their current text in a text edit window (that i dunno, maybe has some buttons on top like github's text edit windows).
A smaller text area lets them name this version.
A 'preview' button shows them the rendered text.
A 'save' button puts the rendered text into the page they're writing text for AND saves it under the name they have selected.
Javascript checks if their filename is evil and either complains of sanitises it? Do we also warn if we're overwriting an existing file?
A python script takes their markdown, saves it under the (sanitised) provided name, turns it into html, and shoves it into the page (pre-renders stuff), somehow saves which file is the active one.
Do we create a mechanism for deleting old files?
This is way more work than it's worth.
Ok, so currently:
We're just doing a fucking CMS because wtf not
Splitting out the CMS https://github.com/celesteh/miniCMS
This may actually be the answer: http://automad.org/documentation
This is moved back to a later milestone.
setintro.php does not yet exist