from hyde.plugin import Plugin class BannerPlugin(Plugin): """ Adds a comment banner to all generated html files """ def text_resource_complete(self, resource, text): banner = """ """ if resource.source.kind == "html": text = banner + text return text