Automated Extraction of Mixins in Cascading Style Sheets - Archive ouverte HAL Accéder directement au contenu
Communication Dans Un Congrès Année : 2016

Automated Extraction of Mixins in Cascading Style Sheets

Résumé

Cascading style sheets (CSS) is a language that describes the presentation of web documents. CSS is widely adopted in web development and it is now common for web projects to have several thousands of CSS lines of code. Because the language lacks advanced features to allow code reuse, several languages such as Sass and Less have emerged as extensions to CSS. They provide mechanisms such as mixins to enable reuse. However, when a developer wants to migrate her web project from CSS to one of these extension languages, identifying mixins is a challenging task. In this paper, we describe an automated approach to extract mixins from CSS code. We have developed a tool that identifies mixins in CSS files and automatically generates Sass code. Our technique enables a fine-grained control on the generated code tailored to developer needs. We evaluate our approach on more than a hundred CSS files and conduct several case studies to assess its real-world relevance.
Fichier principal
Vignette du fichier
main.pdf (343.15 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-02182065 , version 1 (06-01-2020)

Identifiants

Citer

Alan Charpentier, Jean-Rémy Falleri, Laurent Réveillère. Automated Extraction of Mixins in Cascading Style Sheets. 32rd IEEE International Conference on Software Maintenance and Evolution (ICSME), Oct 2016, Raleigh, United States. pp.56-66, ⟨10.1109/ICSME.2016.15⟩. ⟨hal-02182065⟩

Collections

CNRS
31 Consultations
169 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More