summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorhttp://kerravonsen.dreamwidth.org/ <http://kerravonsen.dreamwidth.org/@web>2011-04-20 22:51:58 -0400
committerJoey Hess <joey@kitenet.net>2011-04-20 22:51:58 -0400
commitaff9f5ca3cf495153e6afad52fa7b58ac9b59988 (patch)
tree795ba930c49b354f75b27e23be3c5e6dfe42a57e /doc
parente4c70b8db14f209791b2577c970ee67131d66e56 (diff)
how to process files without creating HTML pages?
Diffstat (limited to 'doc')
-rw-r--r--doc/forum/Processing_non-pages.mdwn7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/forum/Processing_non-pages.mdwn b/doc/forum/Processing_non-pages.mdwn
new file mode 100644
index 000000000..23af417a4
--- /dev/null
+++ b/doc/forum/Processing_non-pages.mdwn
@@ -0,0 +1,7 @@
+I'd like to be able to write a plugin that minifies CSS pages, but the whole plugin mechanism appears to be oriented towards generating HTML pages. That is, all files appear to be split into "pages with page types" and "pages without page types". Pages without page types are copied from the source to the destination directory and that's all. Pages *with* page-types go through the whole gamut: scan, filter, preprocess, linkify, htmlize, sanitize, format, and then they're written as "foo.html".
+
+I could be mistaken, but I don't think registering "css" as a page-type would work. Sure, I could then process the content to my heart's content, but at the end, my foo.css file would be saved as foo.html, which is NOT what I want.
+
+What I would like would be something in-between, where one could take `foo.css`, process it (in this case, run a minify over it) and output it as `foo.css`.
+
+How?