1. fanstatic
  2. fanstatic
  3. fanstatic

Commits

nilo  committed 045c7cf

Corrected documentation of minifiers and compilers specification on library.

  • Participants
  • Parent commits b14c077
  • Branches default

Comments (0)

Files changed (1)

File doc/compilers.rst

View file
  • Ignore whitespace
   from fanstatic import Library, Resource
 
   coffee_library = Library('coffee', 'coffee_resources',
-                           compilers={'js': 'coffee'})
+                           compilers={'.js': 'coffee'})
 
   a = Resource(coffee_library, 'b.js')
   b = Resource(coffee_library, 'plain.js', compiler=None)
 
   from fanstatic import Library, Resource
 
-  js_library = Library('js', 'js_resources', minifiers={'js': 'jsmin'})
+  js_library = Library('js', 'js_resources', minifiers={'.js': 'jsmin'})
 
   a = Resource(js_library, 'a.js')
   b = Resource(js_library, 'tricky.js', minifier=None, minified='tricky.min.js')