| Copyright | (c) Scrive 2012 |
|---|---|
| License | BSD-style (see the LICENSE file in the distribution) |
| Maintainer | mariusz@scrive.com |
| Stability | development |
| Portability | portable |
| Safe Haskell | Safe-Inferred |
| Language | Haskell98 |
Static.Resources.Spec
Contents
Description
Parsing static resources spec.
- Line starting with word set is start of
ResourceSetdefinition. - Line starting css, js or jsx defines
Resource. - Line starting with ignore defines that some file should be ignored by checker.
- ALL other lines are ignored
Sample spec
ignore main.css set a js a.js css a.css css common.css set b js b.js css b.css css common.css
- parseSpec :: FilePath -> IO ResourceSpec
Parsing
parseSpec :: FilePath -> IO ResourceSpec Source