hlfw.ca

plumb

Download patch

ref: aa47ae8c1f3c051ad64135ab1cf1cfdbe6328f36
parent: af7dd7ada73a2de97c3d7e4c5dfe189e2e0a7584
author: halfwit <halfwit@hlfw.ca>
date: Thu Aug 22 20:52:23 PDT 2024

update readme

--- a/README.md
+++ b/README.md
@@ -1,4 +1,3 @@
-# Plumb
 
 ## Overview
 
@@ -13,38 +12,38 @@
 
 Your plumber rules will have to be updated to reflect this more granular message:
 
-```
-## In this example, plan9front's plumber is being used; but similar rule changes would apply for plan9 regular.
 
-type is image/png
-## No longer need to match paths
-#data matches '[a-zA-Z¡-￿0-9_\-./@]+'
-#data matches '([a-zA-Z¡-￿0-9_\-./@]+)\.(jpe?g|JPE?G|gif|GIF|tiff?|TIFF?|ppm|bit|png|PNG)'
-arg isfile	$0
-plumb to image
-plumb start 9 page $file
+	## In this example, plan9front's plumber is being used; but similar rule changes would apply for plan9 regular.
+	
+	type is image/png
+	# No longer need to match paths
+	#data matches '[a-zA-Z¡-￿0-9_\-./@]+'
+	#data matches '([a-zA-Z¡-￿0-9_\-./@]+)\.(jpe?g|JPE?G|gif|GIF|tiff?|TIFF?|ppm|bit|png|PNG)'
+	arg isfile	$0
+	plumb to image
+	plumb start 9 page $file
+	
+	# local html files (Your dev work, for example) can be opened in your editor
+	type is text/html
+	arg isfile $0
+	plumb to edit
+	plumb start $editor $0
+	
+	# remote html files will likely be opened in your browser
+	type is text/html
+	# With the above case matching local files, we no longer need this convolution
+	#data matches '(https?|ftp|file|gopher|mailto|news|nntp|telnet|wais|prospero)://[a-zA-Z0-9_@\-]+([.:][a-zA-Z0-9_@\-]+)*/?[a-zA-Z0-9_?,%#~&/\-+=]+([:.][a-zA-Z0-9_?,%#~&/\-+=]+)*'
+	plumb to web
+	plumb start web $0
+	
+	type is application/pdf
+	# No longer need to match paths
+	#data matches '[a-zA-Z¡-￿0-9_\-./@]+'
+	#data matches '([a-zA-Z¡-￿0-9_\-./@]+)\.(ps|PS|eps|EPS|pdf|PDF|dvi|DVI)'
+	arg isfile	$0
+	plumb to postscript
+	plumb start 9 page $file
 
-# local html files (Your dev work, for example) can be opened in your editor
-type is text/html
-arg isfile $0
-plumb to edit
-plumb start $editor $0
-
-# remote html files will likely be opened in your browser
-type is text/html
-# With the above case matching local files, we no longer need this convolution
-#data matches '(https?|ftp|file|gopher|mailto|news|nntp|telnet|wais|prospero)://[a-zA-Z0-9_@\-]+([.:][a-zA-Z0-9_@\-]+)*/?[a-zA-Z0-9_?,%#~&/\-+=]+([:.][a-zA-Z0-9_?,%#~&/\-+=]+)*'
-plumb to web
-plumb start web $0
-
-type is application/pdf
-## No longer need to match paths
-#data matches '[a-zA-Z¡-￿0-9_\-./@]+'
-#data matches '([a-zA-Z¡-￿0-9_\-./@]+)\.(ps|PS|eps|EPS|pdf|PDF|dvi|DVI)'
-arg isfile	$0
-plumb to postscript
-plumb start 9 page $file
-```
 
 In practice, setting a rule for most common mimetypes will serve you well. (For example, my last implementation of plumber used a relatively small amount of mimes, after a few years' worth of plumbing in this manner. 
 See https://github.com/halfwit/Plumber/tree/master/cfg/plumber)