Displaying 4 results from an estimated 4 matches for "xhtml_strict".
2009 Sep 25
1
how to remove bogusetag by hpricot?
I have use hpricot to translate users'' input html. I want to remove
bogusetag as follows:
>>doc = Hpricot "<p> test world</b></p>", :xhtml_strict => true
=>#<Hpricot::Doc {elem <p> " test world" {bogusetag </b>} </p>}>
>>doc.to_s
=>"<p> test world</b></p>"
what I expected is "<p>test world</p>" without bogusetag </b>, is it
possible?
2006 Oct 03
4
! camping 1.5 + markaby 0.5
...39;>Home</a>" }</tt>
* Less method_missing, meaning: faster calls all around. Tag methods generated
based on doctype.
* The <tt>html</tt> method doesn''t write the doctype tags and meta tags. You
must use <tt>xhtml_transitional</tt> or <tt>xhtml_strict</tt> methods to do
that.
* The <tt>img</tt> method doesn''t try to inject an empty alt tag and a zero
border. No more of that.
_why
2007 Mar 13
18
Daemonizing a camping server
I''m having no luck trying to daemonize mongrel running a camping server.
When mongrel daemonizes, I get:
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:723:in
`accept'': closed stream (IOError)
from
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:293:in
`join''
...
(This was after I disabled the unhandled exception catchall in the
2007 Sep 27
14
Camping and ruby2ruby
...require "rubygems"
require "ruby2ruby"
require "markaby"
def example(&block)
$mab.pre( block.to_ruby.gsub(/^proc \{\n(.*)\n\}$/m, ''\1''))
end
Markaby::Builder.set(:indent, 2)
$mab = Markaby::Builder.new
$mab.xhtml_strict do
div.literate_markaby! do
example do
1 + 1 == 2
end
end
end
puts $mab.to_s
When I wrap that up in a camping project, which looks the following, I
get an error, when using tag! with arguments.
The Code:
require "rubygems"
require &...