It's a dumb sanity check tool for your html. The idea is that if you create your custom elements (for example, look at knockout.js components), and you want to make sure that nothing goes awry while maintaining your source, you can run this easilly configurable tool to do it for you.
- Homepage
- Issues
- Documentation
- [Email](mailto:lethaljellybean at gmail.com)
If you want to do things by hand:
require 'komplement'
Komplement
.new
.with_ignored(%w[a br div])
.with_ignored(%w[custom-element potato])
.in_filetypes(%w[rb erb.html html])
.in_dirs(%w[./app ./some-other-place])
.run
A constant to get rid of most manual workings is provided for you if you want to use it:
require 'komplement'
Komplement
.new
.with_ignored(Komplement::HTML_ELEMENTS)
.with_ignored(%w[custom-element potato])
.in_filetypes(%w[rb erb.html html])
.in_dirs(%w[./app ./some-other-place])
.run
$ gem install komplement
$ komplement
Copyright (c) 2016 Simon (psyomn) Symeonidis
See LICENSE.txt for details.