(self, type=HTML)
| 1417 | return s |
| 1418 | |
| 1419 | def render(self, type=HTML): |
| 1420 | if type == HTML: |
| 1421 | return self.html |
| 1422 | if type == CANVAS: |
| 1423 | return self.canvas |
| 1424 | if type == STYLE: |
| 1425 | return self.style |
| 1426 | if type == SCRIPT: |
| 1427 | return self.script |
| 1428 | if type == DATA: |
| 1429 | return self.data |
| 1430 | |
| 1431 | def export(self, path, overwrite=False, encoding="utf-8"): |
| 1432 | """ Generates a folder at the given path containing an index.html |