[jQuery] Hpricot (RE: Spread jQuery Request)

[jQuery] Hpricot (RE: Spread jQuery Request)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT size=2><FONT face=Verdana>> <SPAN
class=015193218-28092006>> </SPAN><SPAN class=015193218-28092006>From:
</SPAN>Michael Geary</FONT><BR></FONT><FONT face=Verdana><FONT size=2><SPAN
class=015193218-28092006>> </SPAN>> Speaking of sincere flattery, has
anyone seen Hpricot? <BR>> <SPAN class=015193218-28092006>>
</SPAN>It's an HTML parser and munger for Ruby that
uses</FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT size=+0><FONT face=Verdana><FONT size=2><SPAN
class=015193218-28092006>> ></SPAN> jQuery-style
expressions:<BR>> <SPAN
class=015193218-28092006>></SPAN><BR>> <SPAN
class=015193218-28092006>></SPAN> </FONT></FONT></FONT><A
href="http://code.whytheluckystiff.net/hpricot/"><FONT face=Verdana
size=2>http://code.whytheluckystiff.net/hpricot/</FONT></A></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>> From: Yehuda Katz<BR>> It doesn't use
"jQuery style expressions." From what I can <BR>> tell, it uses jQuery
itself. There have been a few occasions <BR>> where I was using hPricot and
it seemed to call a jQuery <BR>> method that wasn't implemented in hPricot.
Weird.</FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff><FONT face=Verdana><FONT
size=2><FONT color=#000000></FONT></FONT></FONT></FONT> </DIV>
<DIV dir=ltr align=left><FONT size=+0><FONT size=+0><FONT face=Verdana
size=2><SPAN class=015193218-28092006>Say what? That's not how Hpricot works at
all.</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT size=+0><FONT size=+0><FONT face=Verdana
size=2><SPAN class=015193218-28092006></SPAN></FONT></FONT></FONT> </DIV>
<DIV dir=ltr align=left><FONT size=+0><FONT size=+0><FONT face=Verdana
size=2><SPAN class=015193218-28092006></SPAN></FONT></FONT></FONT><FONT
color=#0000ff><FONT size=+0><FONT face=Verdana color=#000000 size=2>Hpricot is a
Ruby library, written in Ruby and C. I run it on a server that has no JavaScript
interpreter<SPAN class=015193218-28092006>. </SPAN>I'm <SPAN
class=015193218-28092006>fairly</SPAN> certain that it is not running jQuery
behind my back.</FONT></FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=015193218-28092006></SPAN><FONT face=Verdana
size=2>You can <SPAN class=015193218-28092006>read</SPAN> the Hpricot
source code here:</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#000000 size=2><A
href="http://code.whytheluckystiff.net/hpricot/browser/trunk">http://code.whytheluckystiff.net/hpricot/browser/trunk</A></FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Verdana size=2>Hpricot has its own <SPAN
class=015193218-28092006>Ruby </SPAN>implementation of jQuery-like expressions.
Th<SPAN class=015193218-28092006>at</SPAN> code is in elements.rb:</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Verdana color=#000000 size=2><A
href="http://code.whytheluckystiff.net/hpricot/browser/trunk/lib/hpricot/elements.rb">http://code.whytheluckystiff.net/hpricot/browser/trunk/lib/hpricot/elements.rb</A></FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Verdana size=2><SPAN
class=015193218-28092006><FONT face="Times New Roman" size=3></FONT>
<DIV><SPAN class=015193218-28092006>I wonder if you were thinking
of</SPAN> Why the Lucky Stiff's "balloon" demo site<SPAN
class=015193218-28092006>?</SPAN></DIV>
<DIV><FONT color=#0000ff></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#000000><A
href="http://balloon.hobix.com/hpricot">http://balloon.hobix.com/hpricot</A></FONT></DIV>
<DIV><FONT color=#0000ff></FONT> </DIV>
<DIV dir=ltr align=left>The demo page does indeed use jQuery for the "Click here
to view the code" effect<SPAN class=015193218-28092006>.</SPAN></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff><SPAN
class=015193218-28092006></SPAN></FONT> </DIV></SPAN></FONT></DIV>
<DIV dir=ltr align=left><SPAN class=015193218-28092006><FONT face=Verdana
size=2>If it was something else, I'd be curious to know the
details.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><FONT face=Verdana size=2></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=015193218-28092006><FONT face=Verdana
size=2>-Mike</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=015193218-28092006><FONT face=Verdana
size=2></FONT></SPAN> </DIV></BODY></HTML>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/














































































    • Topic Participants

    • mike