Import a chunk of UTF-8 CSS code from the path.
(self, path)
| 371 | return len(self._jsOut) |
| 372 | |
| 373 | def importJs(self, path): |
| 374 | """Import a chunk of UTF-8 CSS code from the path.""" |
| 375 | if os.path.exists(path): |
| 376 | f = codecs.open(path, 'r', 'utf-8') |
| 377 | self.addJs(f.read()) |
| 378 | f.close() |
| 379 | else: |
| 380 | self.comment('Cannot find JS file "%s"' % path) |
| 381 | |
| 382 | def copyPath(self, path): |
| 383 | """Collect path of files to copy to the output website.""" |