Skip to content

Commit

Permalink
Experimenting with using templates with rack-routes.
Browse files Browse the repository at this point in the history
  • Loading branch information
sporkmonger committed Mar 29, 2015
1 parent b62c176 commit 5de3b9c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/addressable/template.rb
Expand Up @@ -647,6 +647,15 @@ def named_captures
self.to_regexp.named_captures
end

##
# Generates a route result for a given set of parameters.
# Should only be used by rack-routes.
#
# @api private
def generate(params, recall={}, options={})
expand(params, options[:processor])
end

private
def ordered_variable_defaults
@ordered_variable_defaults ||= (
Expand Down

0 comments on commit 5de3b9c

Please sign in to comment.