Skip to content

What is the use of 'classNames': [] and 'exclude': [] in Atomizer's config file? #431

Answered by thierryk
thierryk asked this question in Q&A
Discussion options

You must be logged in to vote

Here is a simple example that explains the use of both classNames and exclude in the config file.

Open Atomizer-Web and do this:

  1. Replace the content of the config with this:
    (click on the ⚙  icon to access the configuration panel)
{
  "custom": {
    "l": "left",
    "r": "right"    
  },
  "classNames": [
    "Fl(l)",
    "Fl(r)"
  ],
  "exclude": [
    "Fl(start)",
    "Fl(end)"
  ]
}
  1. Replace the existing markup in the tool with this:
<div class="Fl(start)">
  Left
</div>
<div class="Fl(end)">
  Right
</div>
  1. The panel in which the CSS is generated should show this:
.Fl\(l\) {
  float: left;
}
.Fl\(r\) {
  float: right;
}

In the example above, we are "replacing" the keywords start

Replies: 0 comments 1 reply

Comment options

thierryk
Jan 25, 2021
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by thierryk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant