Skip to content

MarkupChoice

Copy as Markdown

MarkupChoice = "auto" | "keep" | "replace"

What mountFile does with the markup already in the root:

  • keep: the root’s markup stays (written by you, or rendered on the server) and the elements that carry the file’s classes are animated. The development build warns about each class it does not find.
  • replace: the root’s content becomes the file’s markup (sanitised).
  • auto: an empty root gets the file’s markup, a root that holds every class of the file keeps its own, any other is replaced.