module URITemplate
Defined in:
uri_template.cruri_template/template.cr
uri_template/variable.cr
Constructors
-
.new(uri : String)
Factory method, returns a Template
Class Method Summary
-
.expand(uri : String, *args, **kwargs)
Create a Template and expand it using either a Hash of arguments, or keyword-arguments or both.
-
.expand_partial(uri : String, *args, **kwargs)
Create a Template and expand it partially using either a Hash of arguments, or keyword-arguments or both.
-
.variables(uri : String)
Create a Template and return the variable names from it.
Constructor Detail
Class Method Detail
def self.expand(uri : String, *args, **kwargs)
#
Create a Template and expand it using either a Hash of arguments, or keyword-arguments or both. Returns a String.
def self.expand_partial(uri : String, *args, **kwargs)
#
Create a Template and expand it partially using either a Hash of arguments, or keyword-arguments or both. Returns a partially expanded Template.