Mon Dec 28 09:59:18 UTC 2009 pix@kepibu.org * Minor syntactic changes To make more modern org-modes happy. Woo. diff -rN -u old-Oh, Ducks!/notes new-Oh, Ducks!/notes --- old-Oh, Ducks!/notes 2015-12-19 18:33:38.000000000 +0000 +++ new-Oh, Ducks!/notes 2015-12-19 18:33:38.000000000 +0000 @@ -19,18 +19,18 @@ HTML/XML parsing library such as cxml or closure-html. Start with: - :(asdf:oos 'asdf:load-op :oh-ducks) +: (asdf:oos 'asdf:load-op :oh-ducks) If you would like to use the built-in support for parsing via closure-html (which you almost certainly do), you'll also want to load closure-html: - :(asdf:oos 'asdf:load-op :closure-html) +: (asdf:oos 'asdf:load-op :closure-html) And, if you want to use DOM objects provided by cxml: - :(asdf:oos 'asdf:load-op :cxml) +: (asdf:oos 'asdf:load-op :cxml) ** Load-order Caveats closure-html and cl-unification each define competing readers on #t. To avoid load-order issues resulting in an indeterminate reader on #t, you'll probably want to add - :#.(set-dispatch-macro-character #\# #\T 'unify::|sharp-T-reader|) +: #.(set-dispatch-macro-character #\# #\T 'unify::|sharp-T-reader|) to the top of any file which uses cl-unification's reader templates. Please feel free to submit patches to closure-html and cl-unification @@ -43,7 +43,7 @@ whichever library provides your desired object model and parser. For example, - :depends-on (:oh-ducks :closure-html :cxml) +: :depends-on (:oh-ducks :closure-html :cxml) * Usage The combination of oh-ducks and closure-html provides an HTML template @@ -162,10 +162,10 @@ ** Submit patch to closure-html to add (enable/disable-reader) functions ** non-css templates (e.g., for matching on text of element)? Maybe special-case string/regexp-templates, so for example - #t(html ("div" (#t(regexp "f(o+)bar") . ?div))) +: #t(html ("div" (#t(regexp "f(o+)bar") . ?div))) would match [
foooobar
]? - #t(html ("div" . #t(regexp "f(o+)bar" (?o)))) +: #t(html ("div" . #t(regexp "f(o+)bar" (?o)))) might cause some difficulty, however--we should get a list of matched elements for the div selector, but the regexp variable (?o) can only match once (without some wacky environment merging, anyway).