Replies: 1 comment
-
@honstar that sounds great :) What I'd contribute to this is that you can also use blocks as normal within a fragment. They're going to be wrapped within the fragment on the main page though. Additionally, for most modals in milo, the content is defined within fragments. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It'd be great if the
fragments
feature can be documented in more depth. I'd be happy to contribute a corresponding documentation and best practices once we have gathered all relevant information here.Thanks @chrischrischris for providing the following high-level steps how to setup and use
fragments
:/fragments/
folder (folder can be any depth, just needs to have that as part of the path)A few code pointers:
https://github.com/adobecom/milo/blob/main/libs/utils/utils.js#L408
https://github.com/adobecom/milo/blob/main/libs/blocks/fragment/fragment.js
Beta Was this translation helpful? Give feedback.
All reactions