Ideas #1

Closed
opened 2023-03-29 15:07:29 +02:00 by ardent · 2 comments
Owner

Use git to store the changes
-Allows for being 'stateless' if no authentication is needed
https://github.com/czproject/git-php
Can make a commit for every change
-If single repo, add filename to commit message so can find all changes for specific file
Allow for changing branches to keep better track?
-Disadvantage is that it can't be done on a per-file basis
If per file repository is created, easier to keep track of changes and makes multiple branches a lot easier. Can also keep metadata in repository. If you want to push all the repositories it can become very cluttered

Raw rendering of HTML pages (return correct filetype), also allows for replacing certain special tokens with (full) raw url to other snips.

Can use highlightjs to render code nicely (based on extension?):
https://highlightjs.org/

Use git to store the changes -Allows for being 'stateless' if no authentication is needed https://github.com/czproject/git-php Can make a commit for every change -If single repo, add filename to commit message so can find all changes for specific file Allow for changing branches to keep better track? -Disadvantage is that it can't be done on a per-file basis If per file repository is created, easier to keep track of changes and makes multiple branches a lot easier. Can also keep metadata in repository. If you want to push all the repositories it can become very cluttered Raw rendering of HTML pages (return correct filetype), also allows for replacing certain special tokens with (full) raw url to other snips. Can use highlightjs to render code nicely (based on extension?): https://highlightjs.org/
Author
Owner

Comment system? This can perhaps be done as metadata as well, keep comments in separate file can be nice if each file/project is separate repository.

Comment system? This can perhaps be done as metadata as well, keep comments in separate file can be nice if each file/project is separate repository.
Author
Owner
Little inspiration: https://github.com/alcohol/pastebin-php/blob/main/src/Controller/ReadController.php
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ardent/Snips#1
No description provided.