Improving HTML Accessibility with Curly Braces Templates

Blake Bradford Avatar

·

Curlylint: Improving HTML Accessibility with Curly Braces Templates

Curlylint is an experimental HTML linter designed to analyze “curly braces” templates and their corresponding HTML code. It supports popular templating languages such as Jinja, Nunjucks, Django templates, Twig, and Liquid. The primary focus of Curlylint is to check for common accessibility issues through predefined rules.

Screenshot of the curlylint CLI, with an example invocation raising a parsing issue and a rule error

The current features of Curlylint include:

  • Detection of common accessibility issues in HTML templates.
  • Planned checks for security vulnerabilities, such as rel="noopener noreferrer" and known XSS vulnerabilities.
  • Open to ideas and suggestions for further enhancement.

To start using Curlylint, you can install it from PyPI using the following command:

bash
pip install curlylint

After installing, you can begin linting your templates by running:

bash
curlylint template-directory/

For detailed information on Curlylint’s usage, configuration options, supported template languages, and available rules, refer to the comprehensive documentation.

Contributions to Curlylint are highly appreciated. Whether it’s bug reports, feature requests, code, design, reviews, tests, or documentation, your support is welcome. Please consult the contribution guidelines for more information.

Curlylint originated as a fork of jinjalint and is licensed under the MIT License. The project’s website content is available under the CC0 License. A full list of contributors can be found here.

Discover the power of Curlylint, improve the accessibility of your HTML templates, and ensure code quality by incorporating this valuable software development tool into your workflow.

Do you have any questions or suggestions? Feel free to ask and share your thoughts.

References

Leave a Reply

Your email address will not be published. Required fields are marked *