CSS DSL

    CSS DSL doesn’t need , but requires including the following artifacts in the build script:

    1. The artifact for building CSS:

      Gradle (Kotlin)

      Maven

      CSS DSL - 图5

    Use CSS DSL

    To send a CSS response, you need to extend by adding the method to serialize a stylesheet into a string and send it to the client with the content type:

    Then, you can provide CSS inside the required :