Displaying 1 result from an estimated 1 matches for "literate_programming".
2007 Sep 27
14
Camping and ruby2ruby
...ch looks the following, I
get an error, when using tag! with arguments.
The Code:
require "rubygems"
require "ruby2ruby"
Camping.goes :Test
module Test
module Controllers
class Index < R ''/''
def get
div.literate_programming! do
example { 1 + 1 == 2 }
end
end
end
end
module Helpers
def example(&block)
pre( block.to_ruby.gsub(/^proc \{\n(.*)\n\}$/m, ''\1''))
end
end
end
It raises "Markaby::InvalidXhtmlE...