mousehole 2 syntax

why the lucky stiff why at hobix.com
Tue Apr 10 21:05:41 EDT 2007


On Tue, Apr 10, 2007 at 01:37:41PM -0700, Josh Icuss wrote:
> The syntax seems to have changed since when i last used mousehole. What is
> the current way to select a div with an id of 'header' and delete it? Any
> references I could look at?

Yeah, MH2 uses Hpricot:

  http://code.whytheluckystiff.net/doc/hpricot/  <- docs
  http://code.whytheluckystiff.net/hpricot/      <- showcase

So, your example would go like:

  (document/"#header).remove

_why


More information about the Mousehole-scripters mailing list