You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a project like Susy (with no output CSS to include globally), or project examples that require special context/framing, it would be useful to include both markup and custom styles in a single rendered example. The CSS would be added to the head of the rendered iframe document, with markup added to the body for rendering. There would be two possible approaches to this…
Implicit Rendering:
All html (or html-compiled) examples are rendered. This is the current behavior.
We just need a syntax for adding CSS/Sass to one of those examples.
Explicit Rendering:
Nothing is rendered by default.
We add an @render or @preview annotation syntax, that accepts multiple example-block keys (not sure what we use as the hook) – rendering the selected examples together.
The text was updated successfully, but these errors were encountered:
Instead of linking an @example scss/css with an @example html/njk, might we want a flag that automatically adds the documented Sass to the rendered markup example?
For a project like Susy (with no output CSS to include globally), or project examples that require special context/framing, it would be useful to include both markup and custom styles in a single rendered example. The CSS would be added to the head of the rendered iframe document, with markup added to the body for rendering. There would be two possible approaches to this…
Implicit Rendering:
Explicit Rendering:
@render
or@preview
annotation syntax, that accepts multiple example-block keys (not sure what we use as the hook) – rendering the selected examples together.The text was updated successfully, but these errors were encountered: