Skip to content

Show "CSS" and "JS" tabs in code section #113

@shospodarets

Description

@shospodarets

Currently only "HTML" and "Mustache" tabs are present.
But for many purposes it is needed to show CSS/JS code, e.g.:

  • Widgets/Plugins
    You want to show which JS code provide to start some plugin/widget to work (e.g. tabs, accordion etc.)
  • CSS to show e.g. some mixins usage

We can follow the same logic as for *.json files.
E.g., in folder "source/_patterns/00-atoms/00-global"

  1. We have 00-colors.mustache content of which is shown in "Mustache" tab
  2. If we create 00-colors.css file in the same folder- content of it will be shown in "CSS" tab
  3. If we create 00-colors.js- content of it will be shown in "JS" tab

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions