Skip to content

Quicktips: Prefer Nunjucks comments over HTML ones #1884

Description

@Ryuno-Ki

Web Browser

All of them

Describe the bug

  1. Go to Quick Tip: Inline Minified JavaScript or Quick Tip: Super Simple CSS Concatenation.
  2. Copy the example code snippet.
  3. Run it with Eleventy

The HTML comments are carried over to the HTML output. Instead, it makes more sense to have them stripped by using {# … #} Nunjucks comments.

Files that would need editing under https://github.com/11ty/11ty-website/tree/main/src/docs/quicktips

Screenshots

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions