Mercurial > addons > firefox-addons > feed-preview
diff Makefile @ 6:5d7c13e998e9
Create feed previews using a stream filter
Instead of replacing the feed document with an XHTML preview from a content
script after it has already been rendered, create an XHTML preview using a
stream filter before it is passed into the rendering engine and use an XSL
style sheet to convert it to HTML. This has two advantages, firstly it
results in an HTMLDocument with the full HTML DOM available and secondly it
avoids rendering the document twice.
Refactor the feed preview creation and split parsing and rendering into
seperate modules.
author | Guido Berhoerster <guido+feed-preview@berhoerster.name> |
---|---|
date | Thu, 08 Nov 2018 16:30:34 +0100 |
parents | bc5cc170163c |
children | c271192aac9d |
line wrap: on
line diff
--- a/Makefile Sun Nov 04 10:03:05 2018 +0100 +++ b/Makefile Thu Nov 08 16:30:34 2018 +0100 @@ -36,11 +36,13 @@ NEWS \ README \ $(wildcard _locales/*/messages.json) \ - background.js \ + background.html \ content_scripts/feed-probe.js \ - content_scripts/feed-preview.js \ icons/feed-preview.svg \ $(BITMAP_ICONS) \ + js/background.js \ + js/feed-parser.js \ + js/feed-preview.js \ popup/feed-selection.js \ popup/feed-selection.html \ web_resources/style/feed-preview.css \ @@ -48,6 +50,7 @@ web_resources/style/common.css \ web_resources/style/entry-content.css \ web_resources/feed-preview.xhtml \ + web_resources/xhtml-to-html.xsl \ web_resources/images/arrow.svg .DEFAULT_TARGET = all