lib/utopia/content/document.rb
def lookup_tag(tag)
				# result = tag
				# 
				# # This loop works from inner to outer tags, and updates the tag we are currently searching for based on any overrides:
				# @begin_tags.reverse_each do |state|
				# 	result = state.lookup(result)
				# 	
				# 	return result if result.is_a?(Node)
				# end
				
				# This loop looks up a tag by asking the most embedded node to look it up based on tag name. This almost always only evaluates the top state:
				@end_tags.reverse_each do |state|
					return state.node.lookup_tag(tag) if state.node.respond_to?(:lookup_tag)
				end
				
				return nil
			end
# Maps a tag to a node instance by asking the current node to lookup the tag name. This function is called for each tag and thus heavily affects performance.
# @return [Node] The node for the given tag.
Maps a tag to a node instance by asking the current node to lookup the tag name. This function is called for each tag and thus heavily affects performance.
Maps a tag to a node instance by asking the current node to lookup the tag name . This function is called for each tag and thus heavily affects performance .
def lookup_tag(tag)
				This loop works from inner to outer tags, and updates the tag we are currently searching for based on any overrides:
				@begin_tags.reverse_each do |state|
					result = state.lookup(result)
					return result if result.is_a?(Node)
				end
				This loop looks up a tag by asking the most embedded node to look it up based on tag name. This almost always only evaluates the top state:
				@end_tags.reverse_each do |state|
					return state.node.lookup_tag(tag) if state.node.respond_to?(:lookup_tag)
				end
				return nil
			end
def lookup_tag ( tag ) @end_tags . reverse_each do | state | return state . node . lookup_tag ( tag ) if state . node . respond_to? ( :lookup_tag ) end return nil end
Maps a tag to a node instance by asking the current node to lookup the tag name.
Maps a tag to a node instance by asking the current node to lookup the tag name .
# result = tag #  # # This loop works from inner to outer tags, and updates the tag we are currently searching for based on any overrides: # @begin_tags.reverse_each do |state| # 	result = state.lookup(result) # 	 # 	return result if result.is_a?(Node) # end # This loop looks up a tag by asking the most embedded node to look it up based on tag name. This almost always only evaluates the top state:
The node for the given tag.
The node for the given tag .
Node
tag