Skip to content

Commit

Permalink
DRYML -- removing attribute extension code
Browse files Browse the repository at this point in the history
  • Loading branch information
tslocke committed Jun 17, 2008
1 parent e134fba commit 8408cfd
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
4 changes: 0 additions & 4 deletions hobo/lib/hobo/dryml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ def initialize(message, path=nil, line_num=nil)
end
end

class AttributeExtensionString < String;
def drop_prefix; self[2..-1]; end
end

TagDef = Struct.new "TagDef", :name, :attrs, :proc

RESERVED_WORDS = %w{if for while do class else elsif unless case when module in}
Expand Down
1 change: 0 additions & 1 deletion hobo/lib/hobo/dryml/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,6 @@ def attribute_to_ruby(*args)
else
dryml_exception("invalid quote(s) in attribute value")
end
#attr.starts_with?("++") ? "attr_extension(#{str})" : str
end
options[:symbolize] ? (res + ".to_sym") : res
end
Expand Down
3 changes: 1 addition & 2 deletions hobo/lib/hobo/dryml/template_handler.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Hobo::Dryml

class TemplateHandler
class TemplateHandler < ActionView::TemplateHandler

def initialize(view)
@view = view
Expand Down Expand Up @@ -28,7 +28,6 @@ def render(src, local_assigns)

module ActionController


class Base

def dryml_context
Expand Down

0 comments on commit 8408cfd

Please sign in to comment.