-
Notifications
You must be signed in to change notification settings - Fork 12
Missing Product Recipe #27
Comments
I just read through your slide deck and noticed you mentioned Stencil so perhaps the |
Hi, thanks! PR is totally welcomed. I will take a look and merge it ! 👍
|
@toshi0383 Awesome 😊 Yeah it looked like the handlers were global when I was digging through the JS and Bridge. |
For the Product template, I think we should leave the UI customization to the user, rather than embedding it as Recipe. @steve228uk How do you think? |
@toshi0383 I think I agree with you but providing an official approach for placeholders might be a good idea. Whether that's using stencil or something similar. |
I think I need to describe more. Lately I tend to think that Recipe feature should be separated into a different module since users can pass arbitrary xml to So IMO, we should not embed the Recipe in TVMLKitchen unless
So I think I'm going to remove the @steve228uk @Wei-Xia By the way, about the "official" template formatting, currently by conforming to the |
@toshi0383 I'd say that makes sense 👍 |
@toshi0383 I'm thinking we could provide more templates like Apple has in their website if we have more time to work on this. I agree with steve to provide an official approach with placeholders for users. They can simply fill with more content to use this library. 👍 |
Howdy!
I've been working on some recipes for the Product and Descriptive Alert templates. Once completed, did you want me to submit a PR?
I'm also not sure of the best approach in handling actions. Is there a way for a recipe to intercept these or is it one global handler for the application? Currently I'm using the following:
My approach in generating the XML is slightly different to yours too and I'd appreciate your opinion on whether this is a good idea or not. I have an XML file called
product.xml
that has placeholders such as{{TITLE}}
and{{DESCRIPTION}}
. These are then replaced to generate the final template with the following:The text was updated successfully, but these errors were encountered: