plate0 / platezero

Recipe Manager, Organizer, Creator
https://platezero.com
5 stars 2 forks source link

Export Recipe to Text Formats #240

Open ethanmick opened 5 years ago

ethanmick commented 5 years ago
benburwell commented 5 years ago

I have been thinking about this -- I think we could implement this really nicely by just appending .txt or .md (or .json? .xml?) to the url and getting the appropriate format. E.g. https://platezero.com/bb/chicken-pot-pie.md

Probably also want some mechanism to export all my recipes, e.g. download a zip archive of all my recipes in Markdown or whatever.

ethanmick commented 5 years ago

I made some progress on this. Basically adding new routes (NOT nested as an API route), that listen on /:username/:slug.(txt|md|tex) and returns the custom type.