-
Notifications
You must be signed in to change notification settings - Fork 10
Add support for templating #85
Comments
Hi, I had a look at the API data we get and it seems, that the API is not giving us markdown but rather HTML/Vue code. Here is an example: Unfortunately flutter can't handle these kind of code. |
hi, the api always returns two fields. The first is To generate this I use pymarkdown with some extensions and jinja to parse the template tags out of the markdown. So you could start with |
@vabene1111 thanks. So I will just use the instruction part and try to handle this in flutter. Do I have to consider something else or is this just about {{ ingredients[x] }} ? |
technically there is also these 4, but I am not sure how many people actually now that these exist
and there is |
I dont know if there is any way I could improve the API response for you to handle it in the app, maybe you could use |
All right, thank you! If you look on the screenshot above, there is also {{ ingredients[0] }}{# Garlic #} what does {# Garlic #} do? I thought {{ ingredients[0] }} should print Garlic with the amount? |
The garlic is just a comment for human readability. |
Your Request
I just spun up a new instance of Tandoor on the latest branch and have been using the templating feature which is great for ease of reading instructions.
The feature is described here: https://docs.tandoor.dev/features/templating/
The Current State
Currently the android app does not render the text out of templated ingredients
Additional Context
No response
The text was updated successfully, but these errors were encountered: